Checking for deaths

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Butch
Lieutenant Colonel
Posts: 398
Joined: Fri Jan 24, 2003 11:30 am

Checking for deaths

Post by Butch »

How do I check if all the germans in the level are dead, without giving them targetnames, as I can not access the .map file and can only do this through scripting without knowing any targetnames.
PFC.Butch
B Company, 2nd Ranger Battalion
US Army
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I don't think this is possible :(
Image
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

you'd need 2 check the .bsp for german targetnames, then do a count of all the axis in the game, including all the other targetnames that have been set,

the count will be the highest [array number] + 1
hope this helps, prob not cos it's all foreign 2 me :-/
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

No, it will be highest [array number] since arrays start their indexing at 1 ;)
Image
Post Reply