Page 1 of 1
Spearhead Objectives not working.....
Posted: Sun Jul 13, 2003 4:16 am
by Maj.Duke
Hi All..I'm kinda new to this Mapping thing...I'v got the map layout all done with bots and all...but i just can't seem to get the objectives and all.
I'v looked at your tutorials and did everything but nothing worked..can anyone help me? I got the script and all...just wanting to know how it works...this map is for spearhead...
Posted: Sun Jul 13, 2003 4:31 am
by Alcoholic
show us your script.
Posted: Sun Jul 13, 2003 4:49 am
by Maj.Duke
Its just the one from the tutorial....
--------------------------------------------------------------------------------------
// Dudes MAP
// ARCHITECTURE: AL
// SCRIPTING: AL
exec global/ai.scr
exec global/loadout.scr maps/test_xx.scr
main:
level waittill prespawn
exec global/ambient.scr test_xx
level waittill spawn
$player item weapons/colt45.tik
fadein 2 0 0 0 1
wait 2
level.script = "maps/test_xx.scr"
thread objectives
thread music1
end
objectives:
waitthread global/objectives.scr::add_objectives 1 2 "Escape From the Prison and Get outside." $obj1.origin
set_objective_pos $obj1
end
music1:
$player stufftext "tmstart sound/music/mus_04f_suspense.mp3"
end
objective1:
goto levelend
end
levelend:
waitthread global/objectives.scr::add_objectives 1 3 "Escape From the Prison and Get outside." $obj1.origin
waitthread global/objectives.scr::current_objectives 0
exec global/missioncomplete.scr test_xx 1
end
--------------------------------------------------------------------------------------
all i did was just change the objective name.... to Escape From the Prison and Get outsite." Hmmm...also..where is the trigger texture supposted to go??? where the player is supposted to go? or where? All i did was follow the instructions on the tutorials....
Posted: Sun Jul 13, 2003 5:01 am
by Alcoholic
do you have all the objects in the script? for example $obj1.origin
Posted: Sun Jul 13, 2003 5:07 am
by Maj.Duke
Well..there is only one object...which is to escape...all you need to do is go though a few rooms with some allies and axis and kill them and then open a door and walk through...kinda like the tutorial...
Posted: Sun Jul 13, 2003 5:11 am
by Alcoholic
by objects i mean entites in the game. $obj1 is preferably a script.origin which points your compass towards the objective.
Posted: Sun Jul 13, 2003 5:15 am
by Maj.Duke
yea..i got that in the game...its right in front of the door you have to go through....
Posted: Sun Jul 13, 2003 5:28 am
by Alcoholic
maybe you can see if the script had errors...
you have a shortcut with cheats enabled, and debug mode on right?
if you do, then start the game from there, and before you load the map, type 'logfile 2'.
then load the map, try everything, then type quit in the console.
post the contents of qconsole in your "main" folder. it might have some errors.
Posted: Sun Jul 13, 2003 5:35 am
by Maj.Duke
Well...can you see if you can do that??? I dont know how or what to do....
I'll gladly send you the .map file to help me out......but....i dont hink that you have the textures...that i am useing..i accedently used textures from all kinds of maps....ehehhehe...stopid me...
Posted: Sun Jul 13, 2003 5:47 am
by Alcoholic
textures dont matter just show me the .map file and i can look thru it.
Setthread
Posted: Sun Jul 13, 2003 3:39 pm
by tltrude
I don't know which tutorial you are using, but you probably need to put a trigger_multiple just outside the escape door. Highlight it and press key N. Then type in:
Key: setthread
Value: objective1
When the player walks into the trigger, it will run the thread named objective1 in your script.
Posted: Sun Jul 13, 2003 8:33 pm
by Maj.Duke
I am Useing this sites Tutorial...So i have everything that is right..with the entites correct...
Also...Alcholic..here is the .map file...
http://members.fortunecity.com/changman ... okagas.map
yup...thx for all of your help so far...