vapour 12 Posted August 12, 2016 Hi fellow scripters I have 'Unit1' activating a script from an addAction. Part of the script fires a hint to tell all players on the server what the map grid reference is of the freshly moved respawn point. The unit who activated the script gets a nice "Respawn moved to grid 023865" or wherever the respawn point is, but all the other players get "Respawn moved to grid Any". Where have I gone wrong? Script snippet responsible: [[{gridPos = mapGridPosition getPos Unit1; Hint composeText [parsetext format ["<t size='1.2' align='center' color='#113DDD'>Respawn moved to grid %1", gridPos]]}],"BIS_fnc_Spawn",true] call BIS_fnc_MP; Share this post Link to post Share on other sites
bad benson 1733 Posted August 12, 2016 try like this: [unit1, {_gridPos = mapGridPosition getPos _this; Hint composeText [parsetext format ["<t size='1.2' align='center' color='#113DDD'>Respawn moved to grid %1", _gridPos]]}] remoteExec ["call", 0]; Share this post Link to post Share on other sites
R3vo 2654 Posted August 12, 2016 Try to calculate the values and parse the text before sending it to all clients, otherwise each client has to do that which is unecessary. _gridPos = mapGridPosition getPos _this; _text = composeText [parsetext format ["<t size='1.2' align='center' color='#113DDD'>Respawn moved to grid %1", _gridPos]] _text remoteExec ["hint", 0]; Share this post Link to post Share on other sites
vapour 12 Posted August 12, 2016 Thanks heaps for the replies guys. Okay, this is what the issue was. Thanks to Pierre from Armaholic for spotting it. gridPos was a 'Global' variable, but only on the clients computer. That variable needs to be broadcast to all other clients (players) in the mission by using the command 'publicVariable'. Here's how it all should have looked: gridPos = mapGridPosition getPos unit1; publicVariable "gridPos"; parseText format ["<t size='1.2' align='center' color='#113DDD'>Respawn moved to grid %1", gridPos] remoteExec ["hint"]; 1 Share this post Link to post Share on other sites