OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: netta1234 on 10 Jan 2004, 18:06:37

Title: HELP HERE
Post by: netta1234 on 10 Jan 2004, 18:06:37
how do i make al drop weapon and mag?
 

plz reple
Title: Re:HELP HERE
Post by: zip on 10 Jan 2004, 18:45:46
fill this into your init field :

removeallweapons this;
Title: Re:HELP HERE
Post by: Azraell on 11 Jan 2004, 19:47:52
have you downloaded ofp'?
Title: Re:HELP HERE
Post by: PsyWarrior on 13 Jan 2004, 18:43:08
Greetings.

"removeAllWeapons this" will cause the AI unit to instantly lose their weapon. If you want them to actually drop it, you need to use the action command.

Code: [Select]
unitName action ["drop weapon", weapon]

unitName action ["drop magazine", mag]

I think. It might be completely different to that, so correct me.  ::)

-Supr. Cmdr. PsyWarrior
-Psychic Productions
Title: Re:HELP HERE
Post by: Zell on 15 Jan 2004, 13:53:50
have you downloaded ofp'?
explain :|