Re: Changing turret Guns? [message #285423 is a reply to message #285175] |
Thu, 20 September 2007 23:36 |
|
Veyrdite
Messages: 1471 Registered: August 2006 Location: Australia, Sydney
Karma:
|
General (1 Star) |
|
|
JFW_Weapon_Change_On_Custom (changes the weapon given to an object)
Message (message to listen for)
Powerup (powerup to grant for the weapon)
Weapon (weapon to select)
What this script does is removes all current weapons held by whatever it's attached to.
It then gives a new powerup followed by a new weapon. This will work for vehicles as well as infantry.
This will remove all weapons (including pistol/C4)
The powerup and weapon need to match.
When doing this for vehicles (and perhaps infantry too in some cases), it is essential that both the primary and secondary ammo fields are filled in.
If you don't want secondary fire, set them both to the same ammo.
If you don't do this and someone activates secondary fire, renegade will crash.
Also, sound issues may arrise if the fire sound for the weapon you are using has a "loop" setting of anything other than 1.
WOL: Veyrdite Previously: Dthdealer ( a long time ago )
|
|
|