Need help script or code

pls help i need this scrip help idk why it’s not workin

1 Like

test game not real game if u can help i give u contributer to see what is wrong with code i need help plssssss here a link https://www.modd.io/play/ZVUOF1Cpg
just explain whats wrong so i can lern and change it on my own ur not spwaning is also another problom

Switch the if (Region6336) == (( triggering region))

to

if (( triggering region)) == (Region6336)

Hopefully this helps.

1 Like

What did u do idk get it

How fix spawn can I check it out pls it just test world like this

Did not work

1 Like

Chnage the trigger to when a unit enters a region

1 Like

Or add that, just dont delete it

1 Like

This

1 Like

i want it so when a unit dies in that rigeon they spwan in that rigeon

did not work btw

1 Like

I would solve that by adding a variable to the homie rype region “myRegion”
script 1
trigger: when unit enters region
action: save entity variable “myRegion” as triggering Region.
script 2
trigger: attribute is 0 or less
action: if attr == health then
respawn in random point in region(entity variable ("myRegion) of (this entity))

1 Like

Try doing this:


I recreated that script.

1 Like

image


Is this what you’re trying to do?

1 Like

i could not see if it works cuz join spawn just broke idk how tho

1 Like

I know some of the scripts that i can do

1 Like

ok so what now … i am confused it worked and then broke for no reson i am only dev

how make unite varirbialu

1 Like

Global Variable or Entity Variable?

1 Like

idk what do i need for ur script

i think entity variable

If you try the way i suggested it’s an entity variable just go to your Homie(entities, units, Homie) and there should be a part called variables click there and choose new variable,
type region.
Now where i think about it a bit more you could just reset all the Homies attributes and destroy items plus moving it to a random point so it looks like a new unit but you just recycle the old one.