Difference between revisions of "onPlayerConnected"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
Line 19: Line 19:
 
| '''onPlayerConnected''' statement |= Syntax
 
| '''onPlayerConnected''' statement |= Syntax
  
|p1= statement: [[String]] |= Parameter 1
+
|p1= statement: [[String]] or [[Code]] |= Parameter 1
  
 
| [[Nothing]] |= Return value
 
| [[Nothing]] |= Return value
Line 25: Line 25:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
 
|x1= <code>onPlayerConnected "[_id, _name] execVM ""PlayerConnected.sqf""";</code> |= Example 1  
 
|x1= <code>onPlayerConnected "[_id, _name] execVM ""PlayerConnected.sqf""";</code> |= Example 1  
 +
|x2= <code>[[onPlayerConnected]] {[[diag_log]] [_id, _uid, _name]};</code> |= Example 2
  
 
|mp= The ''statement'' is executed only on the server, not on the joining player's computer, nor on any other client.<br>
 
|mp= The ''statement'' is executed only on the server, not on the joining player's computer, nor on any other client.<br>

Revision as of 01:13, 2 November 2013

Template:Command

Notes

Bottom Section