Jump to content

ExecuteClientScript: Difference between revisions

Use Zdoomwiki template
No edit summary
Tag: Source edit
(Use Zdoomwiki template)
Tag: Source edit
 
Line 5: Line 5:


== Usage ==
== Usage ==
Equivalent to [https://zdoom.org/wiki/ACS_ExecuteAlways ACS_ExecuteAlways], except that it only executes the ''script'' with the given arguments for one ''client''. This is an efficient way of executing <tt>CLIENTSIDE</tt> scripts that should only need to be run by one client, or at least not by everyone, thereby reducing network traffic. NamedExecuteClientScript works the same way but for named scripts. If run offline, the script will be executed on the local machine like normal.
Equivalent to {{Zdoomwiki|ACS_ExecuteAlways}}, except that it only executes the ''script'' with the given arguments for one ''client''. This is an efficient way of executing <tt>CLIENTSIDE</tt> scripts that should only need to be run by one client, or at least not by everyone, thereby reducing network traffic. NamedExecuteClientScript works the same way but for named scripts. If run offline, the script will be executed on the local machine like normal.


=== Parameters ===  
=== Parameters ===