PDA

View Full Version : Event - loss of unit message


Brad_Edmondson
03-24-2003, 04:50 PM
Haven't quite figured out how to do this or if it's possible:

I want the destruction of a unit to be an event and send a message to all players. How do I do that exactly? Whether it's a CO unit or or a platoon, I can seem to figure it out.

Skip
03-24-2003, 05:36 PM
Haven't quite figured out how to do this or if it's possible:

I want the destruction of a unit to be an event and send a message to all players. How do I do that exactly? Whether it's a CO unit or or a platoon, I can seem to figure it out.
One way would be to use an Event that keys on

"_____ strength < ______ members/percent"

where the first blank will be the unit designation.

Brad_Edmondson
03-25-2003, 08:24 PM
Ok, I figured a half-assed way of doing this.

If I want a unit to send a message when it dies it has to compare its strength to another unit, not itself. That was the problem before. So it looks something like this:

CO/A strength < CO/B + 0

Problem is if CO/B gets whacked there's no message for CO/A when he dies. I suppose a workaround would be to throw an AI owned ambulance unit hidden off of the map and have it as the unit to compare to. It stays out of combat and remains a constant to compare to that way. Easier than having OR commands used to compare to several units because they could all get killed first too.

Skip
03-26-2003, 04:59 PM
Brad, (once more) you can do this by setting the conditions for an Event to the following:

<unitname> strength &lt; 1 members

(This is the 8th condition from the top.)

Brad_Edmondson
03-26-2003, 06:06 PM
Brad, (once more) you can do this by setting the conditions for an Event to the following:

<unitname> strength &lt; 1 members

(This is the 8th condition from the top.)


You gotta break out the hand puppets to explain this to me ;)

So you can leave the second part blank and just fill in the number value for the unit to key off of?

Kingtiger
03-27-2003, 09:35 AM
Brad, (once more) you can do this by setting the conditions for an Event to the following:

<unitname> strength &lt; 1 members

(This is the 8th condition from the top.)


You gotta break out the hand puppets to explain this to me ;)

So you can leave the second part blank and just fill in the number value for the unit to key off of?


OR:
&lt;this unit> strength &lt; 1 members

( U klick on the blank part untill U get "this unit")

hope this help