Wheeledvehicle AI
by Roshan Kuriyan · in Torque Game Engine · 06/09/2006 (7:09 pm) · 5 replies
Hi
I tried AI vehicle in my demo game to follow a path, I used 'setMovedestination' for moving the vehicle from one point to other but it is not moving and shows an error that unable to find function 'setMovedestination'. and also i placed some pathmakers in my mission, but the followpath is not working properly, it shows bad path and unable to find 'getObject' function.
Can any one kindly tell how to get the vehicle to follow the path? any help in this regad will be greatly appreciated.Thanks in advance.
I tried AI vehicle in my demo game to follow a path, I used 'setMovedestination' for moving the vehicle from one point to other but it is not moving and shows an error that unable to find function 'setMovedestination'. and also i placed some pathmakers in my mission, but the followpath is not working properly, it shows bad path and unable to find 'getObject' function.
Can any one kindly tell how to get the vehicle to follow the path? any help in this regad will be greatly appreciated.Thanks in advance.
#2
Thanks for ur reply
I am using AIwheeledVehicle class only.. but it shows that there is no path object found in the misson file, but i placed a path and some pathmarkers in the mission..
06/11/2006 (7:51 pm)
Hi Bruno Thanks for ur reply
I am using AIwheeledVehicle class only.. but it shows that there is no path object found in the misson file, but i placed a path and some pathmarkers in the mission..
#3
:)
Nick
06/12/2006 (5:02 am)
Try referring to the path as "MissionGroup/MyPath" instead of just "MyPath". Works fine for me with stock TGE 1.4:)
Nick
#4
I Tried it, But it didnt work for me, my Path name is Trackpath and i specified as "MissionGroup/MyPath/Trackpath" it cant detect the path displays as Bad Path,..
i also tried it as "MissionGroup/Path/Trackpath" and "MissionGroup/Trackpath" all produce same error.
06/12/2006 (8:07 pm)
Hi DigI Tried it, But it didnt work for me, my Path name is Trackpath and i specified as "MissionGroup/MyPath/Trackpath" it cant detect the path displays as Bad Path,..
i also tried it as "MissionGroup/Path/Trackpath" and "MissionGroup/Trackpath" all produce same error.
#5
2. check if pathmarkers are all "childrens" of the Trackpath node in the Resource Manager
Sorry for my english......
06/16/2006 (1:38 am)
1. to check the exact path name of your TrackPath you have to look at the Resource Manager of Torque ( F11 during the game ) : MissionGroup is the root path and probably Trackpath is just in the first level of the tree ( so "MissionGroup/Trackpath" is probably correct )2. check if pathmarkers are all "childrens" of the Trackpath node in the Resource Manager
Sorry for my english......
Torque Owner Bruno Grieco