Jump to content
Sign in to follow this  
Madame69

2 questions

Recommended Posts

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

Hello.

First, just for your information, "senseur" = "trigger" wink_o.gif 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 wink_o.gif )

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

Thank you very much, I'll follow your advice about the comref smile_o.gif

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  

×