action RightMarkerAction()
{
set(my, PASSABLE);
my.blue = 100;
my.ambient = 100;
my.lightrange = 200;
while(1)
{
FrontRightPos.x = your.x + (50 * cos(your.pan)) + (50 * sin(your.pan));
FrontRightPos.y = your.y + (50 * sin(your.pan)) - (50 * cos(your.pan));
FrontRightPos.z = your.z;
vec_set(my.x,FrontRightPos);
wait(1);
}
}
action LeftMarkerAction()
{
set(my, PASSABLE);
my.red = 100;
my.ambient = 100;
my.lightrange = 200;
while(1)
{
FrontLeftPos.x = your.x + (50 * cos(your.pan)) - (50 * sin(your.pan));
FrontLeftPos.y = your.y + (50 * sin(your.pan)) + (50 * cos(your.pan));
FrontLeftPos.z = your.z;
vec_set(my.x,FrontLeftPos);
wait(1);
}
}
function CreateMarker()
{
FrontRightPos.x = my.x + (50 * cos(my.pan)) + (50 * sin(my.pan));
FrontRightPos.y = my.y + (50 * sin(my.pan)) - (50 * cos(my.pan));
FrontRightPos.z = my.z;
ent_create("box.mdl", FrontRightPos, RightMarkerAction);
FrontLeftPos.x = my.x + (50 * cos(my.pan)) - (50 * sin(my.pan));
FrontLeftPos.y = my.y + (50 * sin(my.pan)) + (50 * cos(my.pan));
FrontLeftPos.z = my.z;
ent_create("box.mdl", FrontLeftPos, LeftMarkerAction);
wait(1);
}