Adv 3D game Programing Chapter 7 Pathfinding
by Sventhors · in Torque Game Engine · 09/23/2005 (2:09 pm) · 2 replies
I have my own TGE(which I am using for the tutrioals not the one with the book) and Im trying to do Follow Path in chapter seven. I But I get this error? in the console.cs
The one I type in for aiPlayer.cs is
it is right above the other
Path which torque has already
Did I missed type or something else. Can some one help me. Thanks.
==>insertPathedAI(); starter.fps/server/scripts/aiPlayer.cs (247): Unable to find object: '' attempting to call function 'mountImage' starter.fps/server/scripts/aiPlayer.cs (248): Unable to find object: '' attempting to call function 'setInventory' starter.fps/server/scripts/aiPlayer.cs (0): Unable to find object: '' attempting to call function
The one I type in for aiPlayer.cs is
function InsertPathedAI()
{
%player = AIPlayer::spawnOnPath("Kork", "MissionGroup/Paths/PathA");
%player.mountImage(CrossbowImage, 0);
%player.setInventory(CrossbowAmmo, 1000);
%player.followPath("MissionGroup/Paths/PathA", -1);
}it is right above the other
Path which torque has already
function AIManager::spawn(%this)
{
%player = AIPlayer::spawnOnPath("Kork","MissionGroup/Paths/Path1");
%player.followPath("MissionGroup/Paths/Path1",-1);
%player.mountImage(CrossbowImage,0);
%player.setInventory(CrossbowAmmo,1000);
return %player;
}Did I missed type or something else. Can some one help me. Thanks.
About the author
#2
%player = AIPlayer::spawnOnPath("Kork","MissionGroup/Paths/Path1");
or where the dts and dsq are at? I dont have torque because at friend house will try it when back home.
09/23/2005 (4:59 pm)
Basically you are saying I should lead the path to player.cs? not to%player = AIPlayer::spawnOnPath("Kork","MissionGroup/Paths/Path1");
or where the dts and dsq are at? I dont have torque because at friend house will try it when back home.
Torque Owner Gary Preston
Does "MissionGroup/Paths/PathA" exist?