Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
m4n_strike

Smoke grenade

Recommended Posts

(Sorry if it's been answered before I tried searching for it...)

I'm trying to add a feature to my mission to add a bit more realism to it...

When the objective is completed, I'd like to have the player throw a smoke grenade after being asked to throw a certain color from the pilot (that's done using audio files and triggers). But I don't know how to have the game "know" that the player has thrown a smoke grenade at his / her location to signal the helicopter it's "safe" to land...

Thanks,

-Strike

www.m4net.com

Share this post


Link to post
Share on other sites

Ok, I give it a try...can't test here, so there could be an error...

Put this in the init of the player or in a trigger with a condition.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

Player AddEventHandler ["fired",{_this exec "smokeshellcheck.sqs"}]

Than the script smokeshellcheck.sqs

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

_mode = _this select 3

?(_mode == "smokeshell") : goto "event0"

?(_mode == "smokeshellred") : goto "event1"

?(_mode == "smokeshellgreen") : goto "event2"

exit

#event0

....Blablabla...code...

exit

#event1

....Blablabla...code...

exit

#event2

....Blablabla...code...

exit

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  

×