MaQleod
New Member
- Reaction score
- 0
I have a global array (StartPosition[]) which gets assigned during the trigger based on the owner of the triggering unit.
during the script I run this custom script command:
call ReviveHeroLoc(OURHERO, GetRectCenter(GetPlayableMapRect()), true )
This is based on the revive hero tutorial. Instead of GetPlayableMapRect(), I want to use StartPosition[0] so the hero revives at the starting location of it's owner, but if I change it out, I get an error. How do I input a global variable into the custom script?
Jared
during the script I run this custom script command:
call ReviveHeroLoc(OURHERO, GetRectCenter(GetPlayableMapRect()), true )
This is based on the revive hero tutorial. Instead of GetPlayableMapRect(), I want to use StartPosition[0] so the hero revives at the starting location of it's owner, but if I change it out, I get an error. How do I input a global variable into the custom script?
Jared