View unanswered posts | View active topics It is currently Fri Dec 27, 2024 8:37 am



Reply to topic  [ 3 posts ] 
 Problem with usage of proximity code 
Author Message
User avatar

Joined: Sun Nov 08, 2009 2:33 pm
Posts: 6
Reply with quote
Post Problem with usage of proximity code
http://pastebin.com/m5a857a09

Using this code for the firearm often results in pinning of self. Help anyone?


Mon Nov 09, 2009 10:37 am
Profile
User avatar

Joined: Sun May 11, 2008 12:50 pm
Posts: 899
Reply with quote
Post Re: Problem with usage of proximity code
Code:
if dist < curdist and posactor ~= self.parent then


Change posactor to actor, posactor is nil, so checking if it isn't the parent doesn't really do anything.


Mon Nov 09, 2009 10:43 am
Profile WWW
User avatar

Joined: Sun Nov 08, 2009 2:33 pm
Posts: 6
Reply with quote
Post Re: Problem with usage of proximity code
ahhhhh
thanks.


Mon Nov 09, 2009 10:59 am
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.063s | 13 Queries | GZIP : Off ]