Multiple single player objectives.

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Cbielak
Lance Corporal
Posts: 21
Joined: Sun Jul 01, 2007 7:43 pm

Multiple single player objectives.

Post by Cbielak »

Hey all, I've been scanning through the forums and couldn't an answer to my question:

How do you add more that one objective to a Single player map?

What i want is an objective for:

-pick up gun
-enter room
-kill the targets [5]
-enter another room
-kill the targets [3]
-continue to final room

I was wondering how I could add all theses objectives into one script.

Any help is apreciated.

Code: Select all

I bought bateries, but it said "batteries not included" so i had to buy them again.
Image
User avatar
211476
Captain
Posts: 273
Joined: Fri Feb 29, 2008 2:20 am
Location: Arizona, USA
Contact:

Post by 211476 »

Check this first /tutorials.php?category=Single
Image
User avatar
Cbielak
Lance Corporal
Posts: 21
Joined: Sun Jul 01, 2007 7:43 pm

Post by Cbielak »

i already saw these, i just wana figure out how to add all these objectives into one .scr. So after you complete one objective the next one is added.

Code: Select all

I bought bateries, but it said "batteries not included" so i had to buy them again.
Image
Tazz
Second Lieutenant
Posts: 155
Joined: Fri Feb 16, 2007 1:29 pm
Contact:

Post by Tazz »

hey man this is from m1l2a it has multiple obj's and is set up just like anything else....do one before the other...

Code: Select all

objectives:


	waitthread global/objectives.scr::add_objectives 1 2 "Find and rescue the SAS Agent." level.friendly1.origin
//	waitthread global/objectives.scr::add_objectives 2 1 "Follow the SAS Agent." $osspapers.origin
//	waitthread global/objectives.scr::add_objectives 3 1 "Steal explosives from the fortress." $explosive[1].origin
//	waitthread global/objectives.scr::add_objectives 4 1 "Use explosives to escape." $explosives100.origin
//	waitthread global/objectives.scr::add_objectives 5 1 "Use explosives to destroy a Flak88." $flak88b.origin

	set_objective_pos level.friendly1.origin

end

just set them up then tell them when to run
Post Reply