It might work, but...
Posted: Sun Dec 22, 2002 3:52 pm
I'd say:
I think this version is easier to understand for beginners
.
Code: Select all
main:
level waittill prespawn
level waittill spawn
$player item weapons/thompsonsmg.tik
$player ammo smg 300
$player useweaponclass smg
fadein 2 0 0 0 1
wait 2
waitthread global/objectives.scr::add_objectives 1 2 "Kill the officer." $obj1.origin
If(IsAlive $officer)
$officer waittill death // if the officer is killed, then the mission will complete
waitthread global/objectives.scr::add_objectives 1 3 "Kill the officer." $obj1.origin
waitthread global/objectives.scr::current_objectives 0
iprintln_noloc "The officer has been killed. Mission complete!"
wait 1
exec global/missioncomplete.scr test_assassination 1
end