Data Realms Fan Forums http://45.55.195.193/ |
|
"Const Vector" http://45.55.195.193/viewtopic.php?f=73&t=14681 |
Page 1 of 1 |
Author: | Roon3 [ Sat May 16, 2009 12:58 pm ] |
Post subject: | "Const Vector" |
AddAISceneWaypoint () requires a this so called vector as an argument. What is a "const vector" and how do you create one? |
Author: | Geti [ Sat May 16, 2009 2:15 pm ] |
Post subject: | 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) |
Author: | Roon3 [ Sat May 16, 2009 3:22 pm ] |
Post subject: | Re: "Const Vector" |
Thanks, I'll try that when I'm on my computer. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |