OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: borrowed soap on 04 Jul 2003, 21:48:40

Title: detect soviet weapon fire
Post by: borrowed soap on 04 Jul 2003, 21:48:40
i have a West black ops agent who needs to find and use any East weapon (or any specific weapon if that is easier to script, such as the SVD Dragunov).
i have gone blind looking thru the tutorials and snippets and tools, but i know there is a script there that details this because that was where i got the idea originally for detecting weapons, and now that i need it, i cant find it again
Title: Re:detect soviet weapon fire
Post by: LCD on 04 Jul 2003, 23:55:51
hasweapon command

unitname hasweapon "weapontype"

in da condition field - wil return true if it have it nd false if it dont

also i think u can do

"unitname hasweapn {_X}" count [m16,ak47,etc] > 0

2 chyeck 4 more an 1weapon

;D

LCD OUT
Title: Re:detect soviet weapon fire
Post by: borrowed soap on 05 Jul 2003, 00:27:17
thx, im gonna try using it tongight  :)