NO LEAK SLIDING TRIGGER!! for the lazy man

Evote

New Member
Reaction score
4
this doesn't leak well thats what all those programs that find leaks say::D >.<
PHP:
SLIDE
    Events
        Time - Every 0.01 seconds of game time
    Conditions
    Actions
        Set FROG = (Position of Footman 0000 <gen>)
        Set SLIDE = (FROG offset by 7.00 towards (Facing of Footman 0000 <gen>) degrees)
        Unit - Move Footman 0000 <gen> instantly to SLIDE
        Custom script:   call RemoveLocation (udg_SLIDE)
[PHP]TURNING
    Events
        Unit - A unit Is issued an order targeting a point
    Conditions
    Actions
        Unit - Make Footman 0000 <gen> face (Target point of issued order) over 0.00 seconds
with 2 variables !!!
 

Evote

New Member
Reaction score
4
first trigger was
SLIDE
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Set FROG = (Position of Footman 0000 <gen>)
Set SLIDE = (FROG offset by 7.00 towards (Facing of Footman 0000 <gen>) degrees)
Unit - Move Footman 0000 <gen> instantly to SLIDE
Custom script: call RemoveLocation (udg_SLIDE)
 

uberfoop

~=Admiral Stukov=~
Reaction score
177
The facing trigger leaks a point dfirectly.

The movement trigger leaks a point because it doesn't destroy point titled 'FROG'
 

Evote

New Member
Reaction score
4
facing doesn't though
SLIDE
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Set FROG = (Position of Footman 0000 <gen>)
Set SLIDE = (FROG offset by 7.00 towards (Facing of Footman 0000 <gen>) degrees)
Unit - Move Footman 0000 <gen> instantly to SLIDE
Custom script: call RemoveLocation (udg_SLIDE)
Custom script: call RemoveLocation (udg_FROG)
 

Evote

New Member
Reaction score
4
AND IF U WANT A TERRAIN TYPE THING JUST DO
SLIDE
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Set FROG = (Position of Footman 0000 <gen>)
Set SLIDE = (FROG offset by 7.00 towards (Facing of Footman 0000 <gen>) degrees)
If ((Terrain type at FROG) Equal to Lordaeron Summer - Dirt) then do (Unit - Move Footman 0000 <gen> instantly to SLIDE) else do (Do nothing)
Custom script: call RemoveLocation (udg_SLIDE)
Custom script: call RemoveLocation (udg_FROG)
 

Evote

New Member
Reaction score
4
call RemoveLocation (udg_TURNING[pleyer number triggered player]) how i do that?
 

uberfoop

~=Admiral Stukov=~
Reaction score
177
Its instant, you don't need an array. Just set target point as a variable, use the var, and remove when done...
 

Evote

New Member
Reaction score
4
Or if u feel like somthing better and cooler:
INT
Events
Map initialization
Conditions
Actions
Unit Group - Pick every unit in (Units of type Footman) and do (Unit Group - Add (Picked unit) to UGROUP)

SLIDE
Events
Time - Every 0.01 seconds of game time
Unit - A unit Is issued an order targeting a point
Conditions
Actions
Set MAN = (Position of Footman 0002 <gen>)
Set SLIDE = (MAN offset by 4.20 towards (Facing of Footman 0002 <gen>) degrees)
Set TURNING = (Target point of issued order)
Unit Group - Pick every unit in UGROUP and do (If ((Terrain type at MAN) Equal to Lordaeron Summer - Dirt) then do (Unit - Move (Picked unit) instantly to SLIDE) else do (Do nothing))
Unit Group - Pick every unit in UGROUP and do (If ((Terrain type at MAN) Equal to Lordaeron Summer - Rock) then do (Unit - Kill (Picked unit)) else do (Do nothing))
Unit - Make (Triggering unit) face TURNING over 0.00 seconds
Custom script: call RemoveLocation(udg_TURNING)
Custom script: call RemoveLocation(udg_SLIDE)
Custom script: call RemoveLocation(udg_MAN)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top