View unanswered posts | View active topics It is currently Thu Apr 25, 2024 3:32 pm



Reply to topic  [ 3 posts ] 
 "Const Vector" 
Author Message
User avatar

Joined: Sun May 11, 2008 12:50 pm
Posts: 899
Reply with quote
Post "Const Vector"
AddAISceneWaypoint () requires a this so called vector as an argument. What is a "const vector" and how do you create one?


Sat May 16, 2009 12:58 pm
Profile WWW
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: "Const Vector"
Code:
AddAISceneWaypoint(Vector(X,Y))

Code:
AddAISceneWaypoint(X,Y)

both should work.
or, if you want to use a pointer, to use later or whatever,
Code:
a = Vector(X,Y)
AddAISceneWaypoint(a)

you can also call the coordinates separately, and use them separately.
Code:
a = Vector(6,2)
a.X --returns "6"
a.Y --returns "2"
AddAISceneWaypoint(a.X,a.Y)


Sat May 16, 2009 2:15 pm
Profile WWW
User avatar

Joined: Sun May 11, 2008 12:50 pm
Posts: 899
Reply with quote
Post Re: "Const Vector"
Thanks, I'll try that when I'm on my computer.


Sat May 16, 2009 3:22 pm
Profile WWW
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.083s | 15 Queries | GZIP : Off ]