Spawn Static .dts
by DeVry Online Fall Stdnt 08 (#006 · in Torque Game Engine · 02/14/2010 (3:06 pm) · 4 replies
I want to spawn an NPC at 5 locations and than change team every minute. The code to delete and respawn and change location can wait. Need to test just creating a spawn first.
NPCs\Block.dts is the image
I already have the drop spheres in place and have no clue how to do it
SimGroup - DropPoints contains 20 spawnspheres and I just want to use five at a time.
I have tried using the AImanager and messed up everything. SO what is the easiest way to drop soemthing to a spawn point.
function serverCmdBlockSpawn(%client){
%Block = new TSStatic(){
exec("~/data/shapes/Test/NPCs/Block.dts");
%Block.setTransform("-162.213 287.203 0 1 0 0 0"); <-- This is the location of a shere
%Block.setShapeName("PlayerBlocked");
}
};
This doesn't even create a block in one location, so I can't even ponder how to get 5 at a time.
NPCs\Block.dts is the image
I already have the drop spheres in place and have no clue how to do it
SimGroup - DropPoints contains 20 spawnspheres and I just want to use five at a time.
I have tried using the AImanager and messed up everything. SO what is the easiest way to drop soemthing to a spawn point.
function serverCmdBlockSpawn(%client){
%Block = new TSStatic(){
exec("~/data/shapes/Test/NPCs/Block.dts");
%Block.setTransform("-162.213 287.203 0 1 0 0 0"); <-- This is the location of a shere
%Block.setShapeName("PlayerBlocked");
}
};
This doesn't even create a block in one location, so I can't even ponder how to get 5 at a time.
About the author
#2
Also, to get started, you could try my free resource the Improved AI Guard Unit. It's older than The Universal AI Starter Kit, but I think it should meet your needs better than the resource you linked to. Either of those could help to give you an idea about how to program AI, as well as just doing the work for you. I should also mention that The UAISK comes with a team system, so when you get to that point in development you may want to check it out.
02/14/2010 (7:51 pm)
Everything that you listed above that you would like to do including changing teams, and deleting and respawning bots can be done with The Universal AI Starter Kit.Also, to get started, you could try my free resource the Improved AI Guard Unit. It's older than The Universal AI Starter Kit, but I think it should meet your needs better than the resource you linked to. Either of those could help to give you an idea about how to program AI, as well as just doing the work for you. I should also mention that The UAISK comes with a team system, so when you get to that point in development you may want to check it out.
#3
02/14/2010 (10:12 pm)
I think this can be done without me paying for this. I have other things spawning by the player, but i can't get things to spawn by the sphere
Torque Owner DeVry Online Fall Stdnt 08 (#006
I really have to change DropPoints to AIdroppoints
No clue how to do that without doing it all over again
I can't use static objects with this AI code.
http://www.torquepowered.com/community/blogs/view/12407
iS the link and changes I have been trying to use to get this to work.
No luck so I might just have to start from scratch.
All thoughts and ideas are welcomed.