OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: wiggum on 20 May 2004, 14:20:17
-
hiya everybody, i just wanna know how to remove magazines and grenades cause when ever i type "this removeweapon "handgrenade"" i still have the same amount. same is true for the magazines.
-
Greetings,
Firstly, Hand Grenades are classed as magazines. So you'll need to use
this removeMagazine "handGrenade"
But magazines should work, if you're using the removeMagazine command. The correct command to remove a M16 magazine is
this removeMagazine "M16"
You can remove all magazines of a certain type by using
this removeMagazines "M16"
The above is untried, but it should work. No guarantees, though...
-Supreme Commander PsyWarrior
-Psychic Productions Studios
-
I always get the exact same problem as wiggum. My solution is defintley not the besst. But what i do is remove all the weapons from everyoneand then just give them back their weapons but no grenades :P. I'm sure someone will be able to find a better way of removing grenades than my way.
-
this removemagazines "M16"
Hope that works, its a real pain doing
this removemagazine "M16";this removemagazine "M16";this removemagazine "M16";this removemagazine "M16";this removemagazine "M16";this removemagazine "M16";
in the init field. :(
Thanks for the info. ;)
-
I don't know if it's just me, but I get a weird bug with removeweapons: I can't use "this", I HAVE to use the unitname. "this" works for eveything else tho...
-
Well depends what you put it in...
That will work in init field, not in waypoint or triggers.
this removeallweapons always works
this removeweapon "AK74" works
I never seem to have any problems. There was one time when I first got the game and something like
removeallweapons this gave me trouble. Not sure what that problem was. :-\