Page 1 of 1

objective assasination script

Posted: Thu Dec 29, 2005 4:31 pm
by snajperu
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

Posted: Sun Jan 01, 2006 3:58 am
by Green Beret
D/program files/ea games/mohaa/main/maps/obj
is the objective directory :wink:

Posted: Sun Jan 01, 2006 4:57 am
by LeadHead
Green Beret wrote:D/program files/ea games/mohaa/main/maps/obj
is the objective directory :wink:
I think he is making a single player map though, so it shouldn't be in the objective map directory, right?

Posted: Sun Jan 01, 2006 2:13 pm
by snajperu
Yes, it is single player map

Posted: Sun Jan 01, 2006 2:54 pm
by jv_map
waitthread global/objectives.scr::add objectives 1 2 "Kill the officer with captured weapon."
$obj1.origin

should be on 1 line:

waitthread global/objectives.scr::add objectives 1 2 "Kill the officer with captured weapon." $obj1.origin

You have the same error a few lines more down.

Note that the console will always tell you why a script fails to run properly.

Posted: Sun Jan 01, 2006 4:04 pm
by snajperu
Thank You :)

Posted: Sun Jan 01, 2006 4:59 pm
by Green Beret
Sorry, I just seen obj and thought he was making MP.
Because all single player is pretty much objective :oops:

Posted: Fri Apr 28, 2006 6:14 am
by snipester
aight i know this is old couldnt sleep read random ones looked interesting. how can i get the code for assasinaion for mp maps. any SF or DV would be best! thanks