OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: S.T.O.S on 17 Jan 2005, 20:56:48

Title: removeallweapons, and mag's ???
Post by: S.T.O.S on 17 Jan 2005, 20:56:48
Hey guyes, back again.
just wanted to know why the commandlines Removeallweapons
and Magazines dosent work.
i followed a torturiel. but it woant work when i punch it in. is it because it was alterd in res. Version 1.91
Any help would nice
 ;D
Title: Re:removeallweapons, and mag's ???
Post by: Triggerhappy on 17 Jan 2005, 21:03:40
what syntax are you using?

you know the correct syntax is:
removeallweapons this

not
this removeallweapons

is that what you were doing?
Title: Re:removeallweapons, and mag's ???
Post by: S.T.O.S on 17 Jan 2005, 21:06:37
Yeah that pretty much makes sence now
thx.
 
 :-\ :-X
Title: Re:removeallweapons, and mag's ???
Post by: THobson on 17 Jan 2005, 21:07:31
They work for me.  I have v1.96.

removeAllWeapons this in a units init field, or
removeAllWeapons unitname in a script work fine.


I have never used
unit removeMagazine weaponName
because I have never needed to remove only one magazine

but I have used
unit removeMagazines weaponName
 
to remove all the pipebombs from a Black Op
this removeMagazines "pipebomb"

and that works as well.
 

Are you getting any error messages?
Title: Re:removeallweapons, and mag's ???
Post by: THobson on 17 Jan 2005, 21:11:51
Duh!  
You guys had a conversation while I was writing
Title: Re:removeallweapons, and mag's ???
Post by: Triggerhappy on 17 Jan 2005, 21:15:06
lol, your just too slow nowadays THobson  ;D
Title: Re:removeallweapons, and mag's ???
Post by: THobson on 17 Jan 2005, 22:27:54
Lol looks like it.  Must be my age.  I did write quite a bit though.