ACS: Difference between revisions

mNo edit summary
Tag: Source edit
(remove that PICKUP example)
Tag: Source edit
Line 13: Line 13:
* <code>'''CLIENTSIDE'''</code> scripts client-side and can not be executed by the puke command.
* <code>'''CLIENTSIDE'''</code> scripts client-side and can not be executed by the puke command.
* <code>'''NET CLIENTSIDE'''</code> scripts are client-side and can be executed by the puke command.
* <code>'''NET CLIENTSIDE'''</code> scripts are client-side and can be executed by the puke command.
In this example, when someone picks up the enemy item it will start this script on the client side:
<syntaxhighlight lang="c" line="1">
Script 1 PICKUP CLIENTSIDE
{
  {{zdoomwiki|Print}}(s:"Someone got the flag!");
}
</syntaxhighlight>


It is worth reading [[Clientside Scripting]] if you intend on using CLIENTSIDE scripts.
It is worth reading [[Clientside Scripting]] if you intend on using CLIENTSIDE scripts.
Retrieved from ‘https://wiki.zandronum.com/ACS