kerosene 0 Posted October 13, 2004 Im trying to make a radio message get broadcast when a certain unit named rdr is dead. I tried the following in a script that otherwise works: If (rdr This && !(alive rdr)) then ([Resistance,"HQ"] sideChat " blah, blah.") But I got an error message What needs to go in the OF section to make it happen? Share this post Link to post Share on other sites
MrZig 0 Posted October 13, 2004 Try <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">If (!alive rdr) then {[Resistance,"HQ"] sideChat " blah, blah."} The () after the 'then' statement must be in either quotes or these {} same thing with 'else'. Share this post Link to post Share on other sites
-=BT=- Matty R 0 Posted October 13, 2004 its easy to do in a trigger Condition = NOT ALIVE rdr Activation = [Resistance,"Hq"] sideChat " blah, blah." Share this post Link to post Share on other sites
kerosene 0 Posted October 13, 2004 Thanks guys, it works now. Share this post Link to post Share on other sites