Posted By: Anonymous
my.pan possible for view entity? - 06/12/09 19:51
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:
and i made and view entity of the key, wich i wanna display if the key is picked up:
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?
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?