Page 1 of 1

only one guy can complete the objective in a MP map

Posted: Sat Sep 06, 2003 10:24 am
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....

Posted: Sat Sep 06, 2003 11:28 am
by SNakeFluGeL
Download my map TheVilla at the new maps section and look at the .scr file.

Posted: Sun Sep 07, 2003 8:13 am
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

Posted: Sun Sep 07, 2003 12:29 pm
by Wilson
well u either dnt make a minefield or some one wouldnt run across it

Posted: Sun Sep 07, 2003 11:53 pm
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}