08-14-2014, 11:10 AM
(08-14-2014, 09:52 AM)Outlawz7 link Wrote: this disableAI "Move"; hostageAct = this addAction ["<t color='#FFAA00'>Rescue hostage</t>",{publicVariable "hostageRescued"; hostageRescued = true; publicVariableServer "hostageRescuedServer"; hostageRescuedServer = true;},nil,1,true,true,"","_target distance _this < 3"];
I guess the problem is the order of the publicVariable and assignments.
publicVariable "XXX" broadcasts the current value of XXX. So, you would habe to say
XXX = true; publicVariable "XXX";