Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Dilmah G on July 17, 2009, 09:38:34 pm

Title: num_kills for AI?
Post by: Dilmah G on July 17, 2009, 09:38:34 pm
At the moment, num_kills only works in single player mode when applied to the player. Are there any sexps which will detect the number of kills an AI player has?
Title: Re: num_kills for AI?
Post by: eliex on July 18, 2009, 01:20:25 am
If you set the num_kills target to another pilot other than the player, does that do anything?
Title: Re: num_kills for AI?
Post by: Dilmah G on July 18, 2009, 02:10:56 am
That didn't work when I tried it, it needs to be a player ship apparently, which is why I posted here.
Title: Re: num_kills for AI?
Post by: karajorma on July 18, 2009, 02:38:16 am
Due to the way num_kills works (Checking the player kill total) it's only going to work for a player. In single or MP.
Title: Re: num_kills for AI?
Post by: Dilmah G on July 18, 2009, 03:09:06 am
Yeah I knew that part, thus my question was:
Quote
Are there any sexps which will detect the number of kills an AI player has?
Title: Re: num_kills for AI?
Post by: karajorma on July 18, 2009, 04:15:09 am
There is a way. Get-damaged-caused can come close.

If you set it in a way that used arguments within arguments you could get it to reveal ai kills. The resulting event would be fairly big and complex though. If you want I'll work it out for you but I'm not going to write it down unless I know you're willing to use it. :)