I've tried scripting the 'get the documents' mission. But am having problems:
1. The player can pick up the documents, objective completed comes on screen, and when you press the TAB key it showns a X in the box 'get the documents'. But
2. No Mission Objectives are shown when you press the TAB key at the start of the mission, and the compass isn't pointing to the documents location.
Any ideas? thanks in anticipation..
regards
Otto
Mission Objective not showing, Compass not pointing
Moderator: Moderators
//this is the exact script -copied and pasted, thanks. Otto
exec global/ai.scr
exec global/loadout.scr maps/test_sam.scr
level waittill prespawn
exec global/ambient.scr test_sam
level waittill spawn
main:
waitthread Initplayer
waitthread Initobjectives
end
Initplayer:
$player item weapons/m1_garand.tik
$player ammo rifle 24
$player useweaponclass rifle
fadein 2 0 0 0 1
wait 2
level.script = "maps/test_sam.scr"
end
InitObjectives:
waitthread global/objectives.scr::add_objectives 1 1 "Get the documents" $documents.origin
waitthread global/objectives.scr::add_objectives 1 2
waitthread global/objectives.scr::current_objectives 1
end
objective1:
$documents remove
goto objective
end
objective:
waitthread global/objectives.scr::add_objectives 1 3 "Get the documents" $documents.origin
waitthread global/objectives.scr::current_objectives 0
end
exec global/ai.scr
exec global/loadout.scr maps/test_sam.scr
level waittill prespawn
exec global/ambient.scr test_sam
level waittill spawn
main:
waitthread Initplayer
waitthread Initobjectives
end
Initplayer:
$player item weapons/m1_garand.tik
$player ammo rifle 24
$player useweaponclass rifle
fadein 2 0 0 0 1
wait 2
level.script = "maps/test_sam.scr"
end
InitObjectives:
waitthread global/objectives.scr::add_objectives 1 1 "Get the documents" $documents.origin
waitthread global/objectives.scr::add_objectives 1 2
waitthread global/objectives.scr::current_objectives 1
end
objective1:
$documents remove
goto objective
end
objective:
waitthread global/objectives.scr::add_objectives 1 3 "Get the documents" $documents.origin
waitthread global/objectives.scr::current_objectives 0
end
