PMC websites shut down September 13th 2025 unless yearly web hosting fees are paid. Please Support PMC to help keep these websites online.

Enjoyed or found this pages content useful, please Support PMC to help me keep this web page online beyond september 13th 2025 when yearly web hosting fees are due.

User Tools

Site Tools


arma2:scripting:addpublicvariableeventhandler

Differences

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

Link to this comparison view

Next revision
Previous revision
arma2:scripting:addpublicvariableeventhandler [2013/05/20 05:59] – created addpublicvariableeventhandler initial page. snakemanarma2:scripting:addpublicvariableeventhandler [2024/08/01 22:16] (current) – links added. snakeman
Line 1: Line 1:
 ====== ArmA 2 addPublicVariableEventhandler ====== ====== ArmA 2 addPublicVariableEventhandler ======
 +
 +[[https://www.pmctactical.org/forum/viewforum.php?f=50|ArmA 2 Forum]], [[:arma2|ArmA 2 Home]], [[arma2:config|ArmA 2 Config]], [[arma2:file_formats|ArmA 2 File Formats]], [[arma2:missions|ArmA 2 Missions]], [[arma2:modeling|ArmA 2 3D Modeling]], [[arma2:scripting|ArmA 2 Scripting]], [[arma2:terrain|ArmA 2 Terrain]], [[arma2:texturing|ArmA 2 Texturing]], [[arma2:tools|ArmA 2 Tools]]
  
 Quick **addPublicVariableEventhandler** example. Quick **addPublicVariableEventhandler** example.
Line 33: Line 35:
  
 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.1369029566.txt.gz · Last modified: 2013/05/20 05:59 by snakeman