View unanswered posts | View active topics It is currently Sun Aug 19, 2018 2:29 pm



Reply to topic  [ 5 posts ] 
 Update Function 
Author Message
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Update Function
Is it my idea, or the function Update(self) stops working after a while?


Sun Jun 24, 2012 12:23 am
Profile
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3130
Location: A little south and a lot west of Moscow
Reply with quote
Post Re: Update Function
It should only stop if the object itself is deleted. What's your script, and what type of particle is it attached to?


Sun Jun 24, 2012 1:13 am
Profile WWW
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Update Function
It's a script that should freeze an actor, attached to a MOPixel.
When the MOPixel is near enough to an actor, it changes it's position to the actor position, and then, it uses the SetState thingie to make it not move, shoot, reload, change weapons, etc.

The thing is that it works, but before the particle gets deleted, the actor begins moving again.
I've put things to make sure the particle isn't getting deleted before it should, like making it print it's age, things like that.

Maybe it has to do with the Lua AI?


Sun Jun 24, 2012 1:22 am
Profile

Joined: Fri Sep 10, 2010 1:48 am
Posts: 651
Location: Halifax, Canada
Reply with quote
Post Re: Update Function
Yeah, I've experienced oddities controlling an actor's actions through use of an outside object. Activities and the actor's script work fine but using, in my case, an attachable did nothing. I don't know if the cause of the problem is the same but it sounds kind of similar, I can only assume, like you did, that it must be the ai.


Sun Jun 24, 2012 1:34 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Update Function
It seems that the particle sometimes get deleted before the correct time. I guess I'll delete them artificially and check if that fixes something.


Sun Jun 24, 2012 1:42 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 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.015s | 13 Queries | GZIP : Off ]