New aiPlayer Creation
by Michael Perry · in Torque Game Engine · 11/11/2008 (8:26 am) · 2 replies
Quoted from Ryan's blog:
I m using Torque 1.4, and I want to create an another aiPlayer........ so how would I do??
And I have tried in the file aiPlayer.cc as follows but its not happening ........
and from the missiongroup I have changed the path2's co-ordinate too.... but still its not working.
I m using Torque 1.4, and I want to create an another aiPlayer........ so how would I do??
And I have tried in the file aiPlayer.cc as follows but its not happening ........
function AIManager::spawn(%this)
{
%player = AIPlayer::spawnOnPath("Kork1","MissionGroup/Paths/Path1");
%player.followPath("MissionGroup/Paths/Path1",-1);
$player1=%player;
echo("*************************************************");
echo($player1);
%player.mountImage(CrossbowImage,0);
%player.setInventory(CrossbowAmmo,1000);
%player = AIPlayer::spawnOnPath("Kork2","MissionGroup/Paths/Path2");
%player.followPath("MissionGroup/Paths/Path2",-1);
$player2=%player;
echo("*\&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&");
echo($player2);
%player.mountImage(CrossbowImage,0);
%player.setInventory(CrossbowAmmo,1000);
return %player;
}and from the missiongroup I have changed the path2's co-ordinate too.... but still its not working.
About the author
Programmer.
Associate Andy Hawkins
DrewFX