objective assasination script
Posted: Thu Dec 29, 2005 4:31 pm
My script looks exactly this:
//Warsaw Rising '44
//Architecture: snajperu
//Scripting: snajperu
main:
exec global/ai.scr
level waittill prespawn
level waittill spawn
fadein 2 0 0 0 1
wait 2
thread objectives
end
/////////////OBJECTIVES
objectives:
waitthread global/objectives.scr::add objectives 1 2 "Kill the officer with captured weapon."
$obj1.origin
set_objective_pos $officer
thread objective1
end
//////////
objective1:
waitthread global/objectives.scr::current_objectives 1
if (IsAlive $officer)
$officer waittill death
thread mission_complete
end
//////////
mission_complete:
waitthread global/objectives.scr::add objectives 1 3 "Kill the officer with captured weapon."
$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_bfw1944 1
end
Is there any error? Plx help
I think is all ok but...does not work
placed in d:/medal of honor/main/maps
//Warsaw Rising '44
//Architecture: snajperu
//Scripting: snajperu
main:
exec global/ai.scr
level waittill prespawn
level waittill spawn
fadein 2 0 0 0 1
wait 2
thread objectives
end
/////////////OBJECTIVES
objectives:
waitthread global/objectives.scr::add objectives 1 2 "Kill the officer with captured weapon."
$obj1.origin
set_objective_pos $officer
thread objective1
end
//////////
objective1:
waitthread global/objectives.scr::current_objectives 1
if (IsAlive $officer)
$officer waittill death
thread mission_complete
end
//////////
mission_complete:
waitthread global/objectives.scr::add objectives 1 3 "Kill the officer with captured weapon."
$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_bfw1944 1
end
Is there any error? Plx help
I think is all ok but...does not work
placed in d:/medal of honor/main/maps