ok thats is what i did:
acction elevator
Code:
action ascensor()
{
my.emask =ENABLE_IMPACT;
proc_mode=PROC_EARLY;
var senal=0;
var senal_l=1;
	
//if(event_type == EVENT_IMPACT)if i use this way, the elevstor is not move
//if(you==player)
 senal=1;
var alt=0;
while(1){
	if (senal==1){
if (senal_l==1){  move_vec[2] += alt; my.z=alt *time_step;alt=alt+1;}						
				if (alt>=10)
						senal_l=0;
				if (senal_l==0){move_vec[2] += alt;my.z=alt *time_step;alt=alt-1;}
				if(alt<=-100)
						senal_l=1;											
						}
 	wait(1);


move_vec2 is the player.z
and the problem is continue
thanks

Last edited by GaniX; 11/08/12 23:50.