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
Objectives and waypoints on the radar.
-
- Posts: 87
- Joined: Sun Sep 16, 2012 11:05 pm
- Location: Denmark
Objectives and waypoints on the radar.
Without facts, a mystery is just a guessing game...
- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact:
Re: Objectives and waypoints on the radar.
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.
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.
-
- Posts: 87
- Joined: Sun Sep 16, 2012 11:05 pm
- Location: Denmark
Re: Objectives and waypoints on the radar.
Hi
The ''dummy pawns'' sounds like a good idea.
Thank you for helping.
The ''dummy pawns'' sounds like a good idea.
Thank you for helping.
Without facts, a mystery is just a guessing game...