documentation for onHit, onAttack, pm

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6627 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2011-08-31 00:39:36 +00:00
parent de6f8b0ea5
commit ee624d8dc0
2 changed files with 51 additions and 11 deletions
+40 -11
View File
@@ -1335,15 +1335,15 @@ echo foo
</arguments>
</command>
<command name="echo">
<description>Outputs text to the console.</description>
<arguments>
<argument token="L" description="List of strings"/>
</arguments>
<references>
<identifierReference identifier="hudecho"/>
</references>
</command>
<command name="echo">
<description>Outputs text to the console.</description>
<arguments>
<argument token="L" description="List of strings"/>
</arguments>
<references>
<identifierReference identifier="hudecho"/>
</references>
</command>
<command name="hudecho">
<description>Outputs text to the console and heads up display.</description>
@@ -2042,8 +2042,26 @@ addOnLoadAlways [
</arguments>
<description>If defined, this will be executed each time you pick up an item.</description>
</scriptalias>
<scriptalias name="onWeaponSwitch">
<scriptalias name="onAttack">
<arguments>
<argument token="weapon" description="The weapon that was used" />
</arguments>
<description>If defined, this will be executed each time you shot a bullet, throw a grenade or use your knife.</description>
</scriptalias>
<scriptalias name="onHit">
<arguments>
<argument token="actor" description="The client number of the actor" valueNotes="integer" />
<argument token="target" description="The client number of the target" valueNotes="integer" />
<argument token="damage" description="The damage done" valueNotes="integer" />
<argument token="gun" description="The number of the gun used" valueNotes="integer" />
<argument token="gib" description="Is it a gib or a normal frag" valueNotes="integer (0 or 1)" />
</arguments>
<description>If it's defined, this alias will be executed each time a damage is done.</description>
</scriptalias>
<scriptalias name="onWeaponSwitch">
<arguments>
<argument token="w" description="The weapon ID that you switched to" />
</arguments>
@@ -2636,6 +2654,17 @@ bind PRINT [ if (strcmp $last_server "") [ remember_server ]
</arguments>
</command>
<command name="pm">
<description>Sends a private message to a specified client.</description>
<arguments>
<argument token="C" description="Client number"/>
<argument token="L" description="List of strings"/>
</arguments>
<references>
<identifierReference identifier="say"/>
</references>
</command>
<command name="ignore">
<description>Ignore a player.</description>
<arguments>