Object picking possible?

F

Foggobbler

Guest
Hi!

1) I was just wondering if it´s possible to have our hero walk about the screen in third person view by using the "point & click" - method, used nearly in all adventures.

2) Could the player also click an object and the game would reply something line "you´ve clicked the ..ehm ..box" (just an example ) :)

Thanks,
Oli

p.s. ah, yes.. perhaps you could tell me if anybody has do something like that in a different mod?!
 
Yes, all of those are possible.
All you have to do is calculate where the player clicked, then use the atan function to generate an angle from the player's origin to the point where you clicked. Then you set the player's angle to that, and set his forward move speed. It wouldn't be too hard.
Finding what the player clicked is easy too, it's just a simple traceline.
 
Back
Top