Terrain and Movement Speed

Nathan0093

New Member
Reaction score
4
I want to reduce unit type movement speed if a unit of that type moves onto a particular type of terrain. What would be the easiest way to do this, if its possible?
 

Drunken_God

Hopes to get back into Mapmaking with SC2 :)
Reaction score
106
make a periodic trigger that looks like this:
Event:
Every 0.5 sec of game time
Cond
Action:
set tempgroup = units of type footman
pick every unit in tempgroup and do
-set temppoint = pos of picked unit
--if terrain at temppoint = lorderon ice then do
--set move speed to move speed of picked unit -1000
--else
--set movespeed to default movespeed
-custom script: call RemoveLocation (udg_temppoint)
Custom script: call DestroyGroup (udg_tempgroup)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top