Forum Jump :

Author Message


Posts: 1589
Rank:


Level: Member

Country: pf
Location: Tahiti
Occupation: too many Arma
Age: 61
In-game name: Kobayashi Maru

 
#196684 Posted at 2017-03-25 21:01        
     
<this> refers to the object/player here and the code works on init field of each playable unit as mentioned.
NB : In initPlayerLocal.sqf, you need to use (this select 0) instead of this (first line).

I have no idea what could be the safeZone.sqf script. You can call/spawn some scripts from initPlayerLocal.sqf but you need to pass the arguments also! (the reason why <this> is undefined)
So, just use the code as I wrote with (this select 0) instead of <this> and avoid to stack sqfs for so few lines of code.

This post was edited by Pierre MGI (2017-03-25 21:08, ago)

PLEASE CONTACT ME ON BI FORUMS FOR ANY SCRIPT / MOD QUESTION. TKS