set p = Player(i)
if IsPlayerInForce(p, forForce) then
if GetLocalPlayer() != Player(i) then
Well, here's my code:
JASS:// Some code
Why the fuck would you ever use Integer to Trackable? So, in your GUI interface you force the users to implement use of I2H which can mess up a complete map if they wants to use this.... Nice interface then.
Some info for you
http://www.wc3campaigns.net/showthread.php?t=85984 (Read the whole thread)
http://www.wc3c.net/showthread.php?t=101255&highlight=Dynamic+Triggers (Read the whole thread)
http://www.wc3c.net/showthread.php?t=104679 (Read the whole thread)
function CreateTrackableEGUI takes string path, location loc, real facing returns trackable
if TrackableMaxArrayTrackable2 > 8190 then
set TrackableMaxArrayTrackable2 = 0
set T[TrackableMaxArrayTrackable2] = CreateTrackableEx(path, GetLocationX(loc), GetLocationY(loc), GetLocationZ(loc), facing)
else
set T[TrackableMaxArrayTrackable2] = CreateTrackableEx(path, GetLocationX(loc), GetLocationY(loc), GetLocationZ(loc), facing)
set TrackableMaxArrayTrackable2 = TrackableMaxArrayTrackable2 + 1
endif
set bj_lastCreatedTrackable = I2T(T[TrackableMaxArrayTrackable2])
return bj_lastCreatedTrackable
endfunction
function GetTrackable2$NAME$ takes integer which returns $TYPE$
local Data d = Data(which)
return d.$NAME$
endfunction
function GetTrackable2$NAME$ takes Data d returns $TYPE$
return d.$NAME$
endfunction