OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: BRAVO-TWO on 16 Dec 2005, 02:35:37

Title: ai response to gunfire??
Post by: BRAVO-TWO on 16 Dec 2005, 02:35:37
is there a tried and tested way to get enemy units to react to unsupressed gunfire only  ??

 (eg.... for enemy patrols to respond to M21 fire  and not  HK MP5)
Title: Re:ai response to gunfire??
Post by: Flauta on 16 Dec 2005, 08:41:23
I have heard this question a few years ago... the answer i think it was somsing like chenking the weapon via the "fire" eventhandler... and if it is not an Suppressed gun... you are making noise!!
=P im not good for this.. but maybe this will help

add the exection of this script on every eventahndelr units you want to chek...

and in the script must be like these

Code: [Select]
? ! _unit hasweapon "hk" : [] exec "your script here.sqs"exit
or try whit some other guns

Code: [Select]
? ! _unit hasweapon "hk" or ! _unit hasweapon "ak74su" ETC : [] exec "your script here.sqs"
im not the wizard ;) you are
Title: Re:ai response to gunfire??
Post by: BRAVO-TWO on 16 Dec 2005, 14:49:04
Found what i needed here ...

http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=25367


   8)