|
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 3 posts ] |
|
On creating a kill combo timer?
Author |
Message |
LowestFormOfWit
Joined: Mon Oct 06, 2008 2:04 am Posts: 1559
|
On creating a kill combo timer?
I'm trying to use Lua to record how many actors one of mine has killed within a certain time frame. What function or variable do I need for it to detect enemy deaths within a certain time span? Basically if one of my actors kills 2 actors within 5 seconds of each other, It should report a Double Kill, if he kills 3 within 5 seconds of each other, a multi-kill is reported...etc.
|
Tue Jun 23, 2009 10:34 am |
|
|
piipu
Joined: Mon Jun 30, 2008 9:13 pm Posts: 499 Location: Finland
|
Re: On creating a kill combo timer?
This will be really hard to get to work properly. You could try tracking any particles that are headed away from your actor and checking if there's any dying actors close to where they were in the last sim update, but that's not very feasible.
|
Tue Jun 23, 2009 11:22 am |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: On creating a kill combo timer?
You can do it in a custom scene, since isactor checks will work, but destroy functions run through a scene also work. Unfortunately, that requires custom scripts on ALL actors involved.
And if you just have destroy functions on actors outside the scene, when they die it'll crash CC.
|
Tue Jun 23, 2009 4:48 pm |
|
|
|
|
Page 1 of 1
|
[ 3 posts ] |
|
Who is online |
Users browsing this forum: No registered users |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|