im trying to make a sliding platform (just for expirement)

and i have that:

Code:
 function platform_event(){
if(your.skill1==-41){
my.skill1 *= -1;
}
}

action platform(){
my.emask = ENABLE_IMPACT;
my.event = platform_event;
my.skill1 = 1;
while(1){
c_move(me,vector(my.skill1*2,0,0),nullvector,IGNORE_SPRITES|IGNORE_PASSABLE|USE_BOX|IGNORE_PUSH);
wait(1);
}
}

action platform_nokta(){
my.skill1 = -41;
}



as you can see the "platfrom" is sliding thing here, it slides along x axis, and if it hits an entity with skill1 = -41 it starts to move opposite direction.I use "platform_nokta" s here. if platform hits platform_nokta it should start to move opposite direction.

But it's not working. I set the nokta's skill1 to -41 in wed also but it doesnt seem like they re acting as "you" when they got hit by platform.

p.s. when i set my player's skill1 to -41 and touch the platform it works. it only works for player.

using 7.07

Last edited by Quadraxas; 03/08/08 00:30.

3333333333