pls help i need this scrip help idk why it’s not workin
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.
What did u do idk get it
Chnage the trigger to when a unit enters a region
Or add that, just dont delete it
i want it so when a unit dies in that rigeon they spwan in that rigeon
did not work btw
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))
i could not see if it works cuz join spawn just broke idk how tho
I know some of the scripts that i can do
ok so what now … i am confused it worked and then broke for no reson i am only dev
how make unite varirbialu
Global Variable or Entity Variable?
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.