[General] Movement - type: None, but with exceptions

Status
Not open for further replies.
Level 15
Joined
Sep 11, 2013
Messages
557
Greetings!
A new problem has arrived.. :peasant-sad:
I want to make some units(spiders) able to walk on cliffs, trees, ground and underwater and i know i can do that if i set Movement - type to "None", but here is my problem..
I still want to have (16)collision size on these spiders, but only with other units(enemies or allies), not with cliffs, trees, ground and underwater..
Is that possible? Is it easy to do?

The help will be appreciated!
 
You're describing a Flying unit that has the standard Ground collision which far as I know is not possible to do through the Movement Type fields.

Through triggers you could create a Dummy unit that is linked to each Spider which periodically moves to their position and acts like their Ground collision. Then you would remove it when the Spider dies. This could be done with a Unit Indexer + Unit Group or Hashtable + Unit Group and a trigger that runs every 0.01 seconds, enumerating over the Unit Group and using the SetUnitX/Y functions to place it on top of the Spider.
 
Status
Not open for further replies.
Back
Top