only one guy can complete the objective in a MP map

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Cricrikris
Private
Posts: 3
Joined: Sat Sep 06, 2003 10:13 am

only one guy can complete the objective in a MP map

Post by Cricrikris »

Hello! I'd like to know if someone know how to make a moveable objective: you have to steal something (I know how to script this) and bring back to your base, BUT :
- ONLY the player who have stolen the object can do it
- if he dies, the object stays there near the dead body waiting to be catch by another attacking player.

If someone understands my question (excluse for the mistakes i'm not english) and knows an answer, please help me....
SNakeFluGeL
Sergeant
Posts: 56
Joined: Wed Jul 02, 2003 4:52 pm

Post by SNakeFluGeL »

Download my map TheVilla at the new maps section and look at the .scr file.
Cricrikris
Private
Posts: 3
Joined: Sat Sep 06, 2003 10:13 am

Post by Cricrikris »

I have downloaded your map and I have read your script. I have questions:
- what's trigger " gotdocs2 " refer to ( //called by bsp"), what trigger and where it is ?
- what is customdocs ?

thank you

ps: if a player drops the document in the minefield, there is a problem no one can catch it and it won't respawn in one of the 3 random starting point
Wilson
Warrant Officer
Posts: 131
Joined: Fri Mar 07, 2003 6:12 pm

Post by Wilson »

well u either dnt make a minefield or some one wouldnt run across it
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

in short

the document carrier would be the person who stole the documents... ie

level.doc_carrier = parm.other //(the person who activates the trigger)
level.docs_on_person = 1

//and then
while (!(isalive level.doc_carrier) && (level.docs_on_person == 1))
{$documents.origin = level.doc_carrier.origin
$documents_trigger.origin = level.doc_carrier.origin
level.docs_on_person = 0}
hope this helps, prob not cos it's all foreign 2 me :-/
Post Reply