View unanswered posts | View active topics It is currently Mon Jan 13, 2025 8:10 am



Reply to topic  [ 3 posts ] 
 On creating a kill combo timer? 
Author Message
User avatar

Joined: Mon Oct 06, 2008 2:04 am
Posts: 1559
Reply with quote
Post 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
Profile
User avatar

Joined: Mon Jun 30, 2008 9:13 pm
Posts: 499
Location: Finland
Reply with quote
Post 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
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post 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
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.091s | 13 Queries | GZIP : Off ]