• 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.

Destroying Leaks

Status
Not open for further replies.
Level 5
Joined
Jan 12, 2010
Messages
132
Hi

if you set for example Point_Caster = position of (casting unit) in the trigger A
can you remove it in another trigger also?
for example : trigger B
Call RemoveLocation (udg_Point_Caster)
Yes you can remove in another trigger only if you are not overwrite the variable.
This kind of variable should be removed properly after use.
Exemple trigger
  • Events
    • A unit start the effect of an ability
  • Conditions
  • Actions
    • Point_Caster = position of (casting unit)
    • //Do actions with your variable ex:
    • Special Effect - Create special effect using (my special effect) at (Point_Caster)
    • Special Effect - Destroy last creted special effect
    • Custom Script : call RemoveLocation (udg_ Point_Caster)
 
Status
Not open for further replies.
Top