Jump to content
Sign in to follow this  
kaiowa

know type of dead soldier

Recommended Posts

hi all and sorry for my english

I want to know how can i return to a variable the type and rank of a soldier that the player killed.Its possible?

thanks

Share this post


Link to post
Share on other sites

add eventhandler to the soldier(s) you ""want to"" kill.

eventhandler "killed"

but i dont know if rank works on killed soldiers. just test it out.

Share this post


Link to post
Share on other sites

hi and thx

But the problem is that i want to do it every time i kill an enemy. And doing this i have to writte this line in all enemies to works.

Share this post


Link to post
Share on other sites

You can do something like loop through all units of a side and add the EH that way.

Share this post


Link to post
Share on other sites

Killed units pretty almost instantaneously loose all reference to the living unit.

In many cases you will just get the modelname instead of the pointer to the unit.

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  

×