- Joined
- Jul 6, 2009
- Messages
- 1,885
How should i write custom script to destroy unit array variable with variable index as not only number,but for example "(Player number of (Owner of (Casting unit)))"
Darkness-4ever said:
Custom Script - call RemoveUnit(udg_Unit[GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))])
You can't destroy a unit-array
set unit[0] = null
JASS:set unit[0] = null
Oh shit I did the impossible.
Garfield1337 said:since i found another way to solve my problem.
Garfield1337 said:what i wanted is to clear unit array variable from 1 unit - so the variable is empty
oh god..You didnt even destroy the array, you just nulled one part of it.
Squiggy said:oh god..