You need a ID skill for your switch
Opps EDIT's needed
EDIT 2 - Broken first IF in door action
so
ENTITY* t_trigger[500]; // set a hard max and do not exceed
var trigger_ids=0;
action trigger_switch()
{
t_trigger[trigger_ids] = me; // index from 0-499
trigger_ids+=1;
my.active_tri = 0; /// active_tri must be moved to a skill not a var
......... All the rest
}
var door_ids=0;
action door_or_platform()
{
wait(3); /// or other wait to make sure level is loaded
door_ids +=1;
my.skill80 =door_ids // 1-500 this id matches t_trigger +1. so t_trigger[2] == my.skill80=3;
my.skill10 = 0;
while(1)
{
my.skill10 = t_trigger[my.skill80-1].active_tri;
if(my.skill10 == 0)
{
...move me one way
}
if(my.skill10 ==1)
{
...move me the other way
}
wait(1);
}
That should work --- But I think it's sleep time for me now.. Have fun !
Mal