Different shape for 'bot
by Gregory Sabatini · in Torque Game Engine · 08/16/2006 (2:32 pm) · 6 replies
I am a total newbie at TGE, and need help with the follonwing:
i am using the starter.fps as a starter. i have an Adam Pack. i want to make the AiEnemy use the Orc shape, while the player uses the Adam shape.
Nothing i have tried works... the bot is always the same shape as the player.
Please help.
i am using the starter.fps as a starter. i have an Adam Pack. i want to make the AiEnemy use the Orc shape, while the player uses the Adam shape.
Nothing i have tried works... the bot is always the same shape as the player.
Please help.
#2
08/16/2006 (2:44 pm)
What have you tried so far that's resulted in failure?
#3
datablock PlayerData(DemoPlayer : PlayerBody)
{
shapeFile = "~/data/shapes/adam/adam.dts";
shootingDelay = 2000;
};
figuring that this would overwrite the shapeFile variable...
08/16/2006 (2:48 pm)
I have tried thisdatablock PlayerData(DemoPlayer : PlayerBody)
{
shapeFile = "~/data/shapes/adam/adam.dts";
shootingDelay = 2000;
};
figuring that this would overwrite the shapeFile variable...
#4
08/16/2006 (3:18 pm)
Right..so change PlayerBody to some other body you have.
#5
Open player.cs in server\scripts then add the following after the // Allowable Inventory Items.
datablock PlayerData(GuardPlayer : PlayerBody)
{
shapeFile = "~/data/shapes/Orc/player.dts";
};
Create a folder name Orc in data\shapes, then cut and paste all of the files from player to Orc folder.
Now put your Adam pack in the player folder.
Open Aiguard.cs and change the dts path to the one in the datablock above.
Make sure you read Aiguard readme. Email me if you need more details.
08/17/2006 (12:00 pm)
Search for AiGuard resource then add it to your project now you have AIEnemy.Open player.cs in server\scripts then add the following after the // Allowable Inventory Items.
datablock PlayerData(GuardPlayer : PlayerBody)
{
shapeFile = "~/data/shapes/Orc/player.dts";
};
Create a folder name Orc in data\shapes, then cut and paste all of the files from player to Orc folder.
Now put your Adam pack in the player folder.
Open Aiguard.cs and change the dts path to the one in the datablock above.
Make sure you read Aiguard readme. Email me if you need more details.
#6
08/17/2006 (12:13 pm)
Quote:
I have tried this
datablock PlayerData(DemoPlayer : PlayerBody)
{
shapeFile = "~/data/shapes/adam/adam.dts";
shootingDelay = 2000;
};That's the datablock for the AI Player and you're telling him to use adam.dts?Quote:So, in player.cs make sure your dts file path leads to adam.dts and in your AIPlayer datablock change it to player.dts
i am using the starter.fps as a starter. i have an Adam Pack. i want to make the AiEnemy use the Orc shape, while the player uses the Adam shape.
Torque Owner Matt Vitelli