Page 1 of 1

wont go to next objective ??

Posted: Fri Jun 10, 2005 12:48 pm
by LtNeil
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

Posted: Fri Jun 10, 2005 5:09 pm
by Green Beret
Im no pro at scripting so imma give my guess.
after they guy gets killed, Add a objective++
Or sumtin like that.

Posted: Fri Jun 10, 2005 5:36 pm
by Mj
Try removing this line:

$cannon_operator waittill death
hmm or try:

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
}

Thank you

Posted: Sat Jun 11, 2005 11:06 am
by LtNeil
WOOHOO its works thanks a lot m8!,who would have thought that just taking out the $cannon_operator waittill death and then just putting } after $flak88 anim idle would make everything all better,simple!(when you know how,lol)

Posted: Sat Jun 11, 2005 11:31 am
by Mj
wow, i helped someone scripting! :o

Dude... i'm a Jedi 8-)

Posted: Sat Jun 11, 2005 1:51 pm
by Rookie One.pl
I'm a sith! :twisted:

Posted: Sat Jun 11, 2005 7:57 pm
by LtNeil
Im just grateful :lol: :lol: :lol: