W A S D Keys for AIPlayer
by Robert Stewart · in Torque Game Engine · 10/31/2004 (7:02 am) · 7 replies
Topic says it all, how can i get the aiplayer to move with WASD, thanks.
About the author
#2
10/31/2004 (10:46 am)
I have AI Player as human controlled for certain reasons.
#3
You'll have to have a control object that receives the key presses and then having it send messages to the required AIplayer.
Maybe you could try the other way around, use a Player Object in your game and schedule a Think method for it.
10/31/2004 (11:50 am)
Well, it won't be easy :You'll have to have a control object that receives the key presses and then having it send messages to the required AIplayer.
Maybe you could try the other way around, use a Player Object in your game and schedule a Think method for it.
#4
10/31/2004 (6:29 pm)
Or you can send NetEvents via script... really going to be kind of hacky regardless. I suggest understanding how the move manager and control objects work before going further on this project.
#5
10/31/2004 (6:38 pm)
I understand, thanks
#6
I directly set the AIPlayers as control objects for clients all the time and I can move them around and do whatever I want with them... Is there something wrong with this approach? (Note: I'm using slightly older code (pre 1.3) so this could have changed, but I thought that AIPlayers only get to make moves if the player doesnt?)
10/31/2004 (7:27 pm)
Am I wrong, or is this REALLY easy?I directly set the AIPlayers as control objects for clients all the time and I can move them around and do whatever I want with them... Is there something wrong with this approach? (Note: I'm using slightly older code (pre 1.3) so this could have changed, but I thought that AIPlayers only get to make moves if the player doesnt?)
#7
10/31/2004 (7:33 pm)
Im using TGE 1.2 so if you could maybe help me out, thanks.
Associate Ben Garney