Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Player-Object Relations, Adventure-Game-Style
Player-Object Relations, Adventure-Game-Style
2000-11-29, 4:09 AM #1
Okay, I'm planning a pretty advanced cog here so I thought I might get some input and ideas before starting out. Basically, I'd like to make the player point his head at an object, and keep looking at it till he walks a certain distance away from the object (yes, like in Grim Fandango). Of course, MotS cog doesn't include functions for this, but there are a few similar features in the JK games.

You know the missle turrets that stay locked on you till you get a certain dinstance away from them? Well, that is done by setting two joints in the pup (one for pitch and one for yaw) and using the AI command TurretFire. Now, since the player's head is to do both the pitch and the yaw, I thought I'd set them both PUP assignments to the head joint (will that work...?); even if doesn't, I can set the pitch to the head and yaw to the neck, it's not a big deal.

Now, the big question is whether I'll be able to use and AI with the player. If that's impossible, the whole thing is.

What do you think?
Dreams of a dreamer from afar to a fardreamer.
2000-11-29, 11:50 AM #2
If you made a player have AI then it would take control of the player until it was disabled so I'm not sure. More be in the PUP and Templates then in a cog.

------------------
Keith: "Perhaps there was an age in which people had Knowledge of Magic..."
Keith: "Perhaps there was an age in which people had Knowledge of Magic..."
JK cogs
2000-11-29, 4:35 PM #3
Hmmm.. you could turn the entire body by making the player sync by pulsing every .001 and having the object look at the player until the distance is too great. That's the only cog thing I can think of, and since i'm not too familar with pups I can't tell you about that.
2000-11-30, 7:51 AM #4
Thanks for the ideas, but those won't work [http://forums.massassi.net/html/wink.gif]
And no, the AI won't take control of the player's movements if the only argument in the AI is TurretFire.
Dreams of a dreamer from afar to a fardreamer.

↑ Up to the top!