Spearhead Objectives not working.....

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
Maj.Duke
Lance Corporal
Posts: 10
Joined: Sun Jul 13, 2003 4:14 am
Location: Minnesota
Contact:

Spearhead Objectives not working.....

Post 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...
Image
siik clan modding specialist :D
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

show us your script.
Maj.Duke
Lance Corporal
Posts: 10
Joined: Sun Jul 13, 2003 4:14 am
Location: Minnesota
Contact:

Post 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....
Image
siik clan modding specialist :D
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

do you have all the objects in the script? for example $obj1.origin
Maj.Duke
Lance Corporal
Posts: 10
Joined: Sun Jul 13, 2003 4:14 am
Location: Minnesota
Contact:

Post 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...
Image
siik clan modding specialist :D
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

by objects i mean entites in the game. $obj1 is preferably a script.origin which points your compass towards the objective.
Maj.Duke
Lance Corporal
Posts: 10
Joined: Sun Jul 13, 2003 4:14 am
Location: Minnesota
Contact:

Post by Maj.Duke »

yea..i got that in the game...its right in front of the door you have to go through....
Image
siik clan modding specialist :D
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post 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.
Maj.Duke
Lance Corporal
Posts: 10
Joined: Sun Jul 13, 2003 4:14 am
Location: Minnesota
Contact:

Post 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...
Image
siik clan modding specialist :D
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

textures dont matter just show me the .map file and i can look thru it.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Setthread

Post 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.
Tom Trude,

Image
Maj.Duke
Lance Corporal
Posts: 10
Joined: Sun Jul 13, 2003 4:14 am
Location: Minnesota
Contact:

Post 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...
Image
siik clan modding specialist :D
Post Reply