Game Development Community

Enemy

by Justin Johnson · in Torque Game Engine · 09/30/2005 (8:06 pm) · 3 replies

I can't furgure out how to make a script for an enemy that would attack if you 10 feet near you. i can find out how to do the code for doing damge.

#1
09/30/2005 (8:42 pm)
Check out the AIguard scripts there is something in that code that would make a AIguard see you if you were 10 feet or less from him.
#2
09/30/2005 (9:27 pm)
Could always do something super simple like run a script to simply do a vectordist(yourpos enemypos)
#3
10/01/2005 (11:18 am)
I guss. but couldn't the code also work if you edite it a bite as gaurds? if so i can't simplify it.