User Tools

Site Tools


arma2:scripting:addpublicvariableeventhandler

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

arma2:scripting:addpublicvariableeventhandler [2013-05-20 05:59]
snakeman created addpublicvariableeventhandler initial page.
arma2:scripting:addpublicvariableeventhandler [2015-05-31 23:04]
snakeman added arma 2 global broadcast header.
Line 33: Line 33:
  
 Easy. Easy.
 +
 +
 +====== ArmA 2 Global Broadcast ======
 +
 +<code php>
 +"​PMC_Hint"​ addPublicVariableEventHandler
 +{
 + hint format["​%1",​ (_this select 1)];
 +};
 +</​code>​
 +
 +Then use it like:
 +<code php>
 +PMC_Hint = "Hello world!";​
 +</​code>​
 +
 +And hello world is displayed as hint on every client. Very simple way to show hints from server to clients.
arma2/scripting/addpublicvariableeventhandler.txt · Last modified: 2015-05-31 23:04 (external edit)