Commands: ai
Legend
- X - X is a number
- 'X' - X is a string (a letter/word/text)
- [X=0] - X is an optional parameter with value 0 when omitted (NEVER add [] to your script!)
- - command is hard synced
ai_settimer(VALUE)
Parameters: | VALUE - timer value from 1 to 10 |
Let the current player change the weapon timer to VALUE. This is only possible if the currently selected weapon allows it (AI script only)
ai_weapon(WEAPON)
Parameters: | WEAPON - name of a weapon |
Returns: | SUCCESS - 1 if the weapon is available, else 0 |
Let the current player switch to WEAPON (AI script only).
The command returns 1 if switching is currently possible and if WEAPON is available.
Attention: Do NOT execute ai_attack in the same script call. Otherwise the player will attack with the old weapon and switching will fail!
The command returns 1 if switching is currently possible and if WEAPON is available.
Attention: Do NOT execute ai_attack in the same script call. Otherwise the player will attack with the old weapon and switching will fail!