ziiip 1 Posted November 19, 2009 Hey guys, I'm making my own mission in which a LAV escorts us, but a BMP blows it to smitherines eventually. I want to be able to call in an M1A1 via radio after the LAV is down. So, do I make a trigger active after a specific units is not in the trigger zone? Thanks. Share this post Link to post Share on other sites
H3NRY 10 Posted November 19, 2009 if you name the LAV "lav1" then you make a trigger with both axis 0 and add "!alive lav1" to the condition and in the on act field put what you want to happen ( eg; execing your script that lets you do the radio command) it should wait tell the LAV is dead then let you call the M1A1 Share this post Link to post Share on other sites
galzohar 31 Posted November 19, 2009 Having any condition other than this for a radio trigger is said to be source for problems. Instead, run a script that creates the trigger via the createTrigger command when you want it to become available. Then use the other commands listed on that page to set up that trigger to do what you want. Example: _trgPara = createTrigger ["EmptyDetector",[1,0,0]]; // ALPHA means radio alpha, true means repeatable _trgPara setTriggerActivation ["ALPHA", "", true]; _trgPara setTriggerType "NONE"; // first argument is the condition (always "this" for radio trigger) // second argument is the "on act" field // third argument is the "on deact" field _trgPara setTriggerStatements ["this", "if (player == leader group player) then {bPara=true; publicVariable 'bPara'; nil = [] execVM 'c130jdrop.sqf'; player sideChat 'I just called in the paratroopers!'};", ""]; _trgPara setTriggerText "Mission complete, Call paratroopers"; Of course to make it easier to implement just make the trigger that has !alive lav1 call a script that runs a code similar to the example, except in the "on act" call whatever script gives you the M1A1. And of course set the "repeatable" to false. Share this post Link to post Share on other sites
ziiip 1 Posted November 19, 2009 Can I make scripts in the editor? I'm pretty noobish at mission editing, I know a few basic tricks but this sounds kinda complicated. :D Still, cheers for the help. :) Share this post Link to post Share on other sites
H3NRY 10 Posted November 19, 2009 Can I make scripts in the editor? I'm pretty noobish at mission editing, I know a few basic tricks but this sounds kinda complicated. :D Still, cheers for the help. :) yeah i am noob too but its not all that hard so far. the way i told you to do it seems to be the easiest but his actually has everything you need, just have to do a little bit of editing Share this post Link to post Share on other sites
ziiip 1 Posted November 19, 2009 So um is there a tutorial somewhere for writing a radio script? Share this post Link to post Share on other sites