• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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

Status
Not open for further replies.
Level 13
Joined
Sep 11, 2013
Messages
467
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!
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
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.
Top