Jolly chap*
New Member
- Reaction score
- 34
Hi!
I've made a trigger and I've got a location variable ... but its an array so I don't know how to type it in for the custom script to remove teh memory leak.
For the custom script, I'm not sure what to type in because I haven't used arrays for the variable up till now. I've tried:
But it won't work? Did I spell or type something wrong in the custom script or something? I know there's a simple way to solve this. I think I've seriously missed something tiny like a typo but ...
I've made a trigger and I've got a location variable ... but its an array so I don't know how to type it in for the custom script to remove teh memory leak.
Code:
Spirit Trans
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Spirit Transportation
Actions
Set Spirit_Transportation_Loc[(Player number of (Owner of (Triggering unit)))] = (Position of (Target unit of ability being cast))
bla bla bla ...
For the custom script, I'm not sure what to type in because I haven't used arrays for the variable up till now. I've tried:
Code:
Custom script: call RemoveLocation(udg_Spirit_Transportation_Loc[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]
But it won't work? Did I spell or type something wrong in the custom script or something? I know there's a simple way to solve this. I think I've seriously missed something tiny like a typo but ...