Staredit Network

Staredit Network -> UMS Assistance -> Detecting if dark swarm is walkable
Report, edit, etc...Posted by IsaT on 2006-09-01 at 18:20:53
Is there any way to detect if a dark swarm cast by the player is on walkable terrain? I have tried making the location detects at, but i am making a bunker where it is so I sometimes get an unplaceable... Also, I do not want to restrict where you can cast, as it is already getting too small.

Any ideas?

(w00t for spellcheck)
Report, edit, etc...Posted by Anonymous..... on 2006-09-01 at 18:28:16
Easy, just center a location on it, have a zling in the corner, and when a dark swarm is made move the zling to the location and set a switch.

Once the switch is set, detect if the ling is still at the corner or not. If he is still at the corner, it means he couldnt be moved there and the dark swarm was on unwalkable terrain. Make your actions for if he moves and if he doesnt, clear the switch, and preserve.

Simple as that ^.^

(I read your part about the bunker, maybe a bigger unit like a building would be more appropriate than a zling)

ADDITION:
Oh and your avatar kicks ass! You should search on youtube for Headon Headache, its hilarious.
(Bad acid trip, apply directly to the tongue!)
Report, edit, etc...Posted by IsaT on 2006-09-01 at 18:29:37
I have tried that, forgot to mention.. sometimes even if the unit can be placed there it will still be unplaceable sometimes because of buildings created with triggers aligning to the grid.

Edit-
QUOTE
Oh and your avatar kicks ass! You should search on youtube for Headon Headache, its hilarious.
(Bad acid trip, apply directly to the tongue!)
lmfao.gif
Report, edit, etc...Posted by LegacyWeapon on 2006-09-01 at 19:33:37
Try spawning the bunker elsewhere and moving it? If the bunker doesn't move, then just say you can't place it there...
Report, edit, etc...Posted by IsaT on 2006-09-01 at 19:44:27
Nice idea, that would work.

-locked
Next Page (1)