|
Tiberian Technologies Scripts Reference Revision: 9000
|
Weapon Switch on Keyhook - Infantry Character. More...
#include <jfwweap.h>
This script allows a player to swap one of their weapons for an alternative weapon by pressing a key. The original weapon will be removed from the player and they will be granted a powerup with the alternative weapon. Pressing the key again will remove the alternative weapon from them and grant them a powerup containing their original weapon.
| SwitchTime | The amount of time the weapon swap takes, in seconds. During this time the player will not have either their original weapon or the alternative weapon available to them. |
| WeaponPowerup1 | The name of a powerup preset which grants the players original weapon |
| WeaponPowerup2 | The name of a powerup preset which grants the alternative weapon |
| Keyhook | The name of the keyhook binding to trigger the weapon swap |