OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Martin Kuka on 10 Aug 2006, 08:02:10

Title: Suppressor
Post 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
Title: Re: Suppressor
Post by: Cheetah on 10 Aug 2006, 09:27:03
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.
Title: Re: Suppressor
Post by: Martin Kuka on 10 Aug 2006, 14:05:17
 ;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