m4n_strike 0 Posted November 23, 2003 (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
Blanco 0 Posted November 24, 2003 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