- Joined
- Dec 2, 2016
- Messages
- 733
JASS:
private function OnAttack takes nothing returns boolean
local unit a = GetAttacker()
local player pa = GetOwningPlayer(a)
local integer SideATK = PlayerData(pa).side
endfunction
I have this script (not written by me)
I've read up array structs that is like
integer x = 1
local playerdata pd
set playerdata[3].x=5
But in this script I don't see "side" ever declared anywhere. Is side a pre built in property of player data?
The script also doesn't require any other libraries, so I don't know how else 'side' could be defined unless already a premade property?
And if it is, what are the other things that are premade properties?
In the same script it also does
playerdata[3].main
Any help would be appreciated!