Page 1 of 1

Objectives and waypoints on the radar.

Posted: Mon Mar 25, 2013 3:31 pm
by realgaming135
Hi again.

I was wondering if it is possible to make objectives and waypoints appear on the radar. And if it is possible to make some kind of arrow on the screen that shows what way to go? Like in Wolfenstein (the newest game in the series) where there is a star on the top of the screen, that for example slides to the left when you have to turn left, or slides to the right when you have to turn to the right. :) I could not find anything in the forum that could help me

Thank you for any reply :)

Re: Objectives and waypoints on the radar.

Posted: Tue May 07, 2013 4:44 pm
by QuestOfDreams
This is probably a bit tricky. Here's how I would try to go about it:

Only Pawns or StaticEntityProxy entities can be shown in the radar. You may try to use invisible dummy Pawns for this purpose. Use HideFromRadar(bool) to show/hide the Pawns (reacting to some "This objective is active" trigger).

To indicate the direction on screen, first attach a Pawn to the player and use int WhereIsEntity(string EntityName); to find out if the target is in front of, behind, right or left of the player. Depending on the result use ShowHudPicture to show a picture of an arrow pointing up, down, right or left.

Re: Objectives and waypoints on the radar.

Posted: Tue May 07, 2013 7:15 pm
by realgaming135
Hi
The ''dummy pawns'' sounds like a good idea.
Thank you for helping.