Hi
So I've just started making an indexing system for missile spells and am trying to make them hit obstacles such as cliffs and trees. Problem is that they hit cliffs, but go straight though trees!!! I tried putting in some rocks and they hit them too. Just trees!!!
Here's the movement trigger:
So I've just started making an indexing system for missile spells and am trying to make them hit obstacles such as cliffs and trees. Problem is that they hit cliffs, but go straight though trees!!! I tried putting in some rocks and they hit them too. Just trees!!!
Here's the movement trigger:
-
Move Dummies
-
Events
- Time - Every 0.10 seconds of game time
- Conditions
-
Actions
-
For each (Integer Index_LoopInteger) from 1 to Index_Max, do (Actions)
-
Loop - Actions
- Set TempPoint = (Position of Index_Dummy[Index_LoopInteger])
- -------- If environment is in way --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Terrain pathing at TempPoint of type Walkability is off) Equal to True
-
Then - Actions
- -------- Kill dummy --------
- Unit - Kill Index_Dummy[Index_LoopInteger]
-
Else - Actions
- Unit - Move Index_Dummy[Index_LoopInteger] instantly to (TempPoint offset by 25.00 towards (Facing of Index_Dummy[Index_LoopInteger]) degrees)
-
If - Conditions
- Custom script: call RemoveLocation(udg_TempPoint)
-
Loop - Actions
-
For each (Integer Index_LoopInteger) from 1 to Index_Max, do (Actions)
-
Events