Ok I switched to trigger_multiple and still the same, also the trigger takes my health down all the way but doesn't kill me. I even tried user.health = 0 and I'm still alive.
Code: Select all
main()
{
level.trigger = getent("triggerMultiple","targetname");
thread triggerMove();
thread triggerMultiple();
}
triggerMove()
{
triggerOrigin = getent("triggerOrigin","targetname");
level.trigger enablelinkto();
level.trigger linkto(triggerOrigin);
wait 0.05;
while(1)
{
triggerOrigin movey(-500,5,0,0);
triggerOrigin waittill("movedone");
triggerOrigin movey(500,5,0,0);
triggerOrigin waittill("movedone");
wait 0.05;
}
}
triggerMultiple()
{
while(1)
{
level.trigger waittill("trigger",user);
user.health = 0;
wait 0.05;
}
}
EDIT: Also I got what nightmare meant from reading another post, and renamed my targetnames, but that didn't help.
EDIT2: I changed the trigger to a script_brushmodel and it moves with the triggerOrigin fine.