Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, AndrewAMD), 21,112 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
my.pan possible for view entity? #271385
06/12/09 19:51
06/12/09 19:51

C
chris_oat
Unregistered
chris_oat
Unregistered
C



Hi all!

im so close to finish this, but i need again a lil help.
im my level i have a key with this action:
Code:
 
action red_key
{
if (event_type == event_scan)
{
if (lightonvar)
{
while (player == null) {wait (1);} 
key_show_on();
wait (-2);
ent_remove(me);
snd_play (gotkey_wav, 30, 0);
key2_dis.visible = off;
redkey_pan.visible = on;
got_red = 1;
}
else
.....


and i made and view entity of the key, wich i wanna display if the key is picked up:
Code:
 entity key2_dis
{ 
     type = <key2_display.mdl>; 
     pan = 0; 
     x = 50; // 250 quants ahead of the view 
     y = 0; 
     z = 0; 
}

function key_show_on() 
{ 
key2_dis.visible = on;
while (1)
{ 
my.pan += 3 * time_step;
wait (1);
} 
key2_dis.visible = off;
} 


so far so good, everything works fine, only wen i pick up the key, they key in the level rotates, but i want the key as view entity rotates. how can i do that?

Re: my.pan possible for view entity? [Re: ] #271439
06/13/09 06:25
06/13/09 06:25
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
You need to specify key2_dis.pan += 3 * time_step;
in the while loop.

Re: my.pan possible for view entity? [Re: vlau] #271447
06/13/09 08:56
06/13/09 08:56

C
chris_oat
Unregistered
chris_oat
Unregistered
C



OMG, ur totally right!
and stupid as i am, i tried it like that b4, but i put:
key2_dis.my.pan += 3 * time_step; smile

Thank you vlau !!


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