Madame69 0 Posted June 20, 2006 Hello, I need help for 2 little things First, I need someone to explain me how to make 'list' IE: a list of all US in a censor, and then, everytime a soldier from the list die it does something the second thing, I need an event or whatever, that occurs when X is killed, IE: I name a civilian called Dude, and if he get killed by dude2 it says something that's all I guess Share this post Link to post Share on other sites
whisper 0 Posted June 20, 2006 Hello. First, just for your information, "senseur" = "trigger" probably more appropriate than "censor" ("censeur") 2nd : in your trigger,in the "on Activation" field, put this <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">USListe=thislist;USDead= {not alive _x} count USListeUSListe will contain the list of units that have activated the trigger. Just set the conditions of your trigger to select the correct units (US ones ) Then, create another trigger, don't care about the side, etc... just put it to "repeatedely", and in the "condition" field, put<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">USDead > {not alive _x} count USListe In the "on activation field, put <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">USDead={not alive _x} count USListe;..... with "...." being the action you want to be done when 1 or more of the guy die. 3rd, I suggest you browse the BIS Command Reference searching for function "addEventHandler" and for topic "Events" at the end of the comRef. There is a "killed" event you can use for what you need. Share this post Link to post Share on other sites
Madame69 0 Posted June 23, 2006 Thank you very much, I'll follow your advice about the comref Share this post Link to post Share on other sites