Disabling MG42's

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Ramah Palmer
Warrant Officer
Posts: 131
Joined: Sun May 25, 2003 10:13 am
Location: Nottinghamshire: UK

Disabling MG42's

Post by Ramah Palmer »

Hi, I've done a search of the forums and cannot find an answer to my particualr problem with MG42s.
Is there any way to disbale an MG42 in a multiplayer map? Or failing that, is there a way to only make it appear when certain conditions are met?

I want to make it so that only when a certain button is pressed or level pulled the MG42 will then work. Is this possible?

Thanks.
Mapping is just INCREDIBLY time consuming.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

setPlayerUsable <state>: Sets wether or not a player can use this turret. If the parameter is 0, then player?s will not be able to use it. Any other value will allow player?s to use the turret.
Ramah Palmer
Warrant Officer
Posts: 131
Joined: Sun May 25, 2003 10:13 am
Location: Nottinghamshire: UK

Post by Ramah Palmer »

Thanks m8! That worked an absolute treat, yehaaa!!!
Just gotta sort my spawning without weapons problem now and I'm away! :D
Mapping is just INCREDIBLY time consuming.
Post Reply