wont go to next objective ??
Posted: Fri Jun 10, 2005 12:48 pm
In my first obj i have a cannon that fires and a man standing next to it when he gets shot the cannon stops fireing and the player then goes on to objective two but when the player kills the man it still stays on the first obj ??? heres the script
// Objective One
waitthread global/objectives.scr::add_objectives 1 2 "Kill the cannon_operator" $obj1.origin
set_objective_pos $obj1
thread obj1
end
obj1:
if (IsAlive $cannon_operator)
{
$flak88 anim fire_scripted
wait 2
$flak88 anim idle
goto obj1
}
else
{
$cannon_operator waittill death
$flak88 anim idle
}
waitthread global/objectives.scr::add_objectives 1 3 "kill the cannon_operator" $obj1.origin
waitthread global/objectives.scr::current_objectives 0
wait 2
waitthread global/objectives.scr::add_objectives 2 2 "Use the bangalore" $obj2.origin
set_objective_pos $obj2
thread obj2
end
// Objective One
waitthread global/objectives.scr::add_objectives 1 2 "Kill the cannon_operator" $obj1.origin
set_objective_pos $obj1
thread obj1
end
obj1:
if (IsAlive $cannon_operator)
{
$flak88 anim fire_scripted
wait 2
$flak88 anim idle
goto obj1
}
else
{
$cannon_operator waittill death
$flak88 anim idle
}
waitthread global/objectives.scr::add_objectives 1 3 "kill the cannon_operator" $obj1.origin
waitthread global/objectives.scr::current_objectives 0
wait 2
waitthread global/objectives.scr::add_objectives 2 2 "Use the bangalore" $obj2.origin
set_objective_pos $obj2
thread obj2
end