Post your scripting questions / solutions here
Moderator: Moderators
fonseca
Private
Posts: 2 Joined: Thu Oct 13, 2005 2:28 pm
Post
by fonseca » Thu Oct 13, 2005 2:34 pm
Hi all
Hope someone can help me whit a script , so i can remove the portble MG42 in Stadt and Berlin
ViPER
General
Posts: 1058 Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:
Post
by ViPER » Thu Oct 13, 2005 5:00 pm
try this in your map script above prespawn
Code: Select all
removeclass addOn_playerweapon_german_PortableMG42
or if you want to call it back
Code: Select all
if(getcvar "noPMG42" != "0")
{
removeclass addOn_playerweapon_german_PortableMG42
}
set noPMG42 0
then restart to have it again
fonseca
Private
Posts: 2 Joined: Thu Oct 13, 2005 2:28 pm
Post
by fonseca » Fri Oct 14, 2005 9:57 am
hmm i cant get it to work
removeclass addOn_playerweapon_german_PortableMG42
Does anyone have a other suggestion.
bdbodger
Moderator
Posts: 2596 Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:
Post
by bdbodger » Fri Oct 14, 2005 1:14 pm
Looking at the tik for the portable gun in spearhead it has
classname PortableTurret
so maybe removeclass PortableTurret
addOn_playerweapon_german_PortableMG42 is a tik name not a classname in fact it is not even a tik name just what in in the quaked statement at the bottom of the tik
ViPER
General
Posts: 1058 Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:
Post
by ViPER » Fri Oct 14, 2005 8:48 pm
Your right. I had looked at the bsp - it said classname - addon_playerweaponblablabla
there is also -
CarryableTurret
and for the fixed mgs use -
TurretGun