OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Martin Kuka on 10 Aug 2006, 08:02:10
-
Okay, I could use some help.... ;D
Is there any command that checks if a unit uses suppressed weapon?
BTW: If it possible to make a suppressor addon that counts as item, NOT A WEAPON and can be attached to a weapon....
I WANT THAT Lol ;D
-
http://www.ofpec.com/COMREF/index.php?action=list&letter=t#W
Check the command weapons vehicle and see what you can do with it. An idea is to check all of the elements of the array for silenced weapontypes.
-
;D Guess this is going to work. As all silenced weapons are usually marked as "SD" or "S", so I see it as
two-trigger combination. One checks and other one takes appropriate action if check is successful.
I only wonder if it can return value, cos it is an addon weapon.
Thanx a lot ;D