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

Specific 'call RemoveLocation' question {removing a specific variable of an array}

Status
Not open for further replies.
Level 3
Joined
Oct 30, 2009
Messages
49
  • Event
  • Conditions
  • Actions:
  • Set HeavenAndEarth[(Player number of (Owner of (Triggering unit)))] = (Center of Return from heaven <gen>)
  • Camera - Pan camera for (Owner of (Triggering unit)) to HeavenAndEarth[(Player number of (Owner of (Triggering unit)))] over 0.00 seconds
  • Unit - Move (Triggering unit) instantly to HeavenAndEarth[(Player number of (Owner of (Triggering unit)))]
  • Custom script: call RemoveLocation(udg_HeavenAndEarth)
The trigger above has an issue, I only want to remove udg_HeavenAndEarth[(Player number of (Owner of (Triggering unit)))] not all of them. (it is an array) how do I remove the array of the owner of the triggering unit?
 
Level 3
Joined
Oct 30, 2009
Messages
49
Right click only brings up the following options:
Cut
Copy
Paste
Delete
-
View in Object Manager
-
New Category
New Trigger
New Trigger Comment
-
[] Enable Trigger
[] Initially On
[] Category is Comment

**Nevermind I got it. Its under the edit menu 'Convert to Custom Text'. Thanks very much for the assistance. I didnt know you could convert triggers to jass like that. +rep
 
Status
Not open for further replies.
Top