Temp Point Question

Lord Regno

Active Member
Reaction score
19
I just wondering if it's work to have two temp points at the same time then after that remove the temp point to avoid leaks.

Ex.

Trigger:
  • Actions
    • Set Temp_Point = (Center of Respawn <gen>)
    • Unit - Create 1 Titan_unittype[(Player number of Player 12 (Brown))] for Player 12 (Brown) at Temp_Point facing Default building facing degrees
    • Unit - Create 1 Combination Shop for Player 12 (Brown) at Temp_Point facing Default building facing degrees
    • Custom script: call RemoveLocation (udg_Temp_Point)


This is the usually way to do it:

Trigger:
  • Actions
    • Set Temp_Point = (Center of Respawn <gen>)
    • Unit - Create 1 Titan_unittype[(Player number of Player 12 (Brown))] for Player 12 (Brown) at Temp_Point facing Default building facing degrees
    • Custom script: call RemoveLocation (udg_Temp_Point)
    • Set Temp_Point = (Center of Respawn <gen>)
    • Unit - Create 1 Combination Shop for Player 12 (Brown) at Temp_Point facing Default building facing degrees
    • Custom script: call RemoveLocation (udg_Temp_Point)


So do the trigger avoid leaks in the first example or do I have to stick to the old way?
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
the way on the top works fine, you only need to clear it so that you can use that variable again with different information, not if you are using the same info
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
id tag you back but i cant give it out till tomorow, maxxed out in 24 hours :p
 
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