Jump to content
Sign in to follow this  
TomDark

If Soldier Flare or Weapon then ....

Recommended Posts

He guys,

I working on a Stealth rescue Operation.

I don´t want to create a flare with Flare="F_40mm_red" createvehicle [x,y,z];

I want to make it more realistic.

If the Soldier1 with Gp25 or M203 detected the West Side, he fired an flare and after the Flare was fired the Alarm starts off.

And if you shoot him befor he can fire the Flare, then nothing happens and the alarm stays off.

and the same with Gunfire if any East Soldier detected the West side, fire any weapon and the alarm turn on.

i want to make it with Logical in the init.sqs or sqf ...

but the Arma logic confuses me again and again. :p

If(sol1 fire ["M203Muzzle", "M203Muzzle", "Flarered_M203"]) then alarm = true;

Please can you help me?

thanks reading

Share this post


Link to post
Share on other sites

try out my flare script in my profile, and for your alarm, just set trigger to detected by and timeout 5-10 secs and youll have a soldiers fire flares when a enemy is detected, alarm goes off 5-10 secs after enemy detected, play around with time to get best results.

If(sol1 fire ["M203Muzzle", "M203Muzzle", "Flarered_M203"]) then alarm = true;

Also for your question, you are looking for fired Event Handler

Edited by Demonized

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×