Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, TipmyPip, OptimusPrime), 15,359 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
change automatically #171743
12/07/07 14:22
12/07/07 14:22
Joined: Sep 2007
Posts: 80
R
ruchen Offline OP
Junior Member
ruchen  Offline OP
Junior Member
R

Joined: Sep 2007
Posts: 80
I created a radar to scan the surroundings of the me entity in my demo,but I don't use the view entity.I use small panels to represent the models around.
When the me entity stands towards north in the level and there is a model in the east direction,then the small panel will appear right on the radar.When I turn to east,the model is in my front,so the small panel should appear up on the radar.
Then how can I make the panel change its position automatically when the me entity changes its direction in the level?

Re: change automatically [Re: ruchen] #171744
12/09/07 04:18
12/09/07 04:18
Joined: Dec 2006
Posts: 78
Nevada, USA
Futurulus Offline
Junior Member
Futurulus  Offline
Junior Member

Joined: Dec 2006
Posts: 78
Nevada, USA
You could use vec_rotate to change the position you get from the scan so it's relative to the player's view.
Code:
vec_rotate(temp_model_pos, my.pan);

(Since you've already made the radar, I'm assuming you're familiar with Lite-C/C-Script.)


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1