Creating an AI Marker
by Maximillian Brewer · in Technical Issues · 01/09/2009 (6:14 pm) · 4 replies
Hi,
I have made mention of this in another post (YackPack Help) and haved had a reply, and Quinton has volentered to explain how to make one, but this may take a while, as he has alot of work at the moment...
so, if someone knows how to create a simple Ai Marker, that would spawn a normal Player Body shape in root animation...and would like to help explain how to do this, that would be great!
From Ross
Thanks in advance
I have made mention of this in another post (YackPack Help) and haved had a reply, and Quinton has volentered to explain how to make one, but this may take a while, as he has alot of work at the moment...
so, if someone knows how to create a simple Ai Marker, that would spawn a normal Player Body shape in root animation...and would like to help explain how to do this, that would be great!
From Ross
Thanks in advance
About the author
#2
My idea is that i can implement the changes from your resource you suggested, then make a copy of the new aiplayer.cs file, and rename it to be: aimarker.cs and it is basiclly the same, but i just delete all the parts that referr to the spawned bot attacking, leaving me with a file that defines a marker spawning allie bots.
Then i just load it up, and see if it works! If it does, I will tell you, and then probably make a resource explaining how to do it, coz i have seen numerous forum posts with people wanting to know how
From Ross
EDIT: Well I just wanted to tell you that i got a marker working, that spawns a non-attacking AI unit. From what i have learnt and done, i will make a resource for how to do this!
01/11/2009 (1:06 pm)
@Quinton I was looking through the Resource you suggested, and think I could probably use that instead of another resource i use to create an attacking bot marker.My idea is that i can implement the changes from your resource you suggested, then make a copy of the new aiplayer.cs file, and rename it to be: aimarker.cs and it is basiclly the same, but i just delete all the parts that referr to the spawned bot attacking, leaving me with a file that defines a marker spawning allie bots.
Then i just load it up, and see if it works! If it does, I will tell you, and then probably make a resource explaining how to do it, coz i have seen numerous forum posts with people wanting to know how
From Ross
EDIT: Well I just wanted to tell you that i got a marker working, that spawns a non-attacking AI unit. From what i have learnt and done, i will make a resource for how to do this!
#3
01/12/2009 (1:33 am)
@Ross Excellent ... I am glad you came right. The best way to learn Torque is do stuff like that. I am looking forward to your resource. :)
#4
http://www.garagegames.com/community/blogs/view/15961
I am having some problems with it (my resource). I set up one Marker, and hooked the Yack Pack to it, and it works perfectly! But when I set up a second aiMarker.cs file with different name and place it in, and load, neither of my NPC's will talk.
I have worked out that if the secondaiMarker.cs file is called for (in games.cs) then it causes both to not talk, meaning that it might have to do with the fact that both .cs files have the same functions (i didn't delete any functions, just re-named the player specific functions)
From Ross
01/23/2009 (8:13 pm)
@Quinton You can find the resource at the below URL:http://www.garagegames.com/community/blogs/view/15961
I am having some problems with it (my resource). I set up one Marker, and hooked the Yack Pack to it, and it works perfectly! But when I set up a second aiMarker.cs file with different name and place it in, and load, neither of my NPC's will talk.
I have worked out that if the secondaiMarker.cs file is called for (in games.cs) then it causes both to not talk, meaning that it might have to do with the fact that both .cs files have the same functions (i didn't delete any functions, just re-named the player specific functions)
From Ross
Torque Owner Quinton Delpeche
Gobbo Games
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=6742
Most of the time if you get code on the forums just do a search and you should find the resources that were used. Most people use existing resources and then modify them or update existing resources to work with the new versions. The search facility on this site is your friend. :)