onPickup fix, onDisconnect, docs

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6606 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2011-08-20 23:00:10 +00:00
parent e0b45cccfb
commit 5a7e64793f
5 changed files with 40 additions and 14 deletions
+20 -1
View File
@@ -2034,13 +2034,32 @@ addOnLoadAlways [
</arguments>
<description>If defined, this will be executed each time a flag action occurs.</description>
</scriptalias>
<scriptalias name="onPickup">
<arguments>
<argument token="item" description="The item that was picked up" valueNotes="integer (0 = pistol clips, 1 = ammo box, 2 = grenade, 3 = health, 4 = helmet, 5 = armour, 6 = akimbo)" />
<argument token="q" description="The quantity that was received" />
</arguments>
<description>If defined, this will be executed each time you pick up an item.</description>
</scriptalias>
<scriptalias name="onWeaponSwitch">
<arguments>
<argument token="w" description="The weapon ID that you switched to" />
</arguments>
<description>If defined, this will be executed each time you switch to a different weapon.</description>
</scriptalias>
<scriptalias name="onConnect">
<arguments>
<argument token="player" description="The client number of the player who connected" valueNotes="integer (-1 for local player)" />
</arguments>
<description>If defined, this will be executed when you or another player join(s) a server.</description>
</scriptalias>
<scriptalias name="onDisconnect">
<description>If defined, this will be executed when you disconnect from a server.</description>
</scriptalias>
<scriptalias name="onSpawn">
<arguments>