View unanswered posts | View active topics It is currently Sat Apr 20, 2024 4:15 am



Reply to topic  [ 5 posts ] 
 MovableMan:GetClosestActor 
Author Message
User avatar

Joined: Mon Jun 30, 2008 9:13 pm
Posts: 499
Location: Finland
Reply with quote
Post MovableMan:GetClosestActor
I'm a bit confused by the syntax of this function. CC says the arguments should be
Code:
MovableMan:GetClosestActor(Vector2, number, custom [float]2, const Actor*)

Could someone explain what exatcly are these arguments?


Sat Apr 18, 2009 8:29 am
Profile
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: MovableMan:GetClosestActor
1. Is a location
2. Not sure, might be range. It's a number.
3. Same as 2. It's a decimal number.
4. That's a pointer to an actor.

I'm sure about 1,2,3 but lua doesn't have pointers.
Must be a mistake in the documentation/bindings.


Sat Apr 18, 2009 9:21 am
Profile
User avatar

Joined: Mon Jun 30, 2008 9:13 pm
Posts: 499
Location: Finland
Reply with quote
Post Re: MovableMan:GetClosestActor
What I meant was how to use this function. Knowing what datatypes the arguments are really doesn't help that much.


Sat Apr 18, 2009 2:27 pm
Profile
User avatar

Joined: Sun May 11, 2008 12:50 pm
Posts: 899
Reply with quote
Post Re: MovableMan:GetClosestActor
Do you mean like this:
Code:
Bob = MovableMan:GetClosestActor(*Numbers*)
Bob.GibThis -- Or something like that


Sat Apr 18, 2009 4:00 pm
Profile WWW
User avatar

Joined: Mon Jun 30, 2008 9:13 pm
Posts: 499
Location: Finland
Reply with quote
Post Re: MovableMan:GetClosestActor
Yes, that's what I'm looking for.


Sat Apr 18, 2009 7:06 pm
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.068s | 15 Queries | GZIP : Off ]