Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsJedi Outcast and Jedi Academy Editing Forum → Detecting entity health & armour using scripting - How?
Detecting entity health & armour using scripting - How?
2002-07-19, 9:51 AM #1
Hi!
I basically got twelve stormtroopers to run all the way to the middle of the map shooting at the player which is what I wanted!
But, what I want to do is detect when the twelve stormtroopers are dead so I can spawn twelve more!
How do I do this?

Thanks for your time and help and please reply as soon as possible...

Kayron James Mercieca - JK2 Mapping
2002-07-19, 12:04 PM #2
Anybody have any idea?
I'm sure the creator of Ladder 2 knows!

Kayron James Mercieca - JK2 Mapping
2002-07-19, 12:20 PM #3
You can't determine that from scripting. you have to link the first entity to the second entity, so that the first has "target" "stormie" and the second has "NPC_targetname" "stormie". It might be "NPC_target" stormie" and "targetname" "stormie (the opposite), I can't remember.
2002-07-19, 1:02 PM #4
Oh right, so when the first stormtrooper dies, he executes his target which is the other stormtrooper, spawning him in the position I designated in the editor itself!
Right, thanks a lot! [http://forums.massassi.net/html/wink.gif]

I shall try it out...

Kayron James Mercieca - JK2 Mapping

↑ Up to the top!