Documents

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
tuffstuff7
Captain
Posts: 265
Joined: Mon Jan 06, 2003 12:59 am
Contact:

Post by tuffstuff7 »

hi i am just playingwith the obj thing i am new to mapping anyways but i made a room with axis and allies sp. point and info player start a table and the documents with the trigger but here is what happends when the "game " starts it acts like someone won it will not even let you in
i believe iti s in my script

here is what i have

// roadkill.obj
// ARCHITECTURE: tuffstuff7
// SCRIPTING: tuffstuff7

main:


setcvar "g_obj_alliedtext1" "Steal the documents."
setcvar "g_obj_alliedtext2" "- Go get them"
setcvar "g_obj_alliedtext3" "- U know U want to" setcvar "g_obj_axistext1" "Prevent the allies"
setcvar "g_obj_axistext2" "from stealing the"
setcvar "g_obj_axistext3" "documents (Please?)."
setcvar "g_scoreboardpic" "none"


level waittill prespawn


exec global/DMprecache.scr
level.script = maps/obj/roadkill-obj.scr
exec global/ambient.scr roadkill-obj


level waittill spawn


// Set the parameters for round based match


level.dmrespawning = 0
level.dmroundlimit = 5
level.clockside = axis


// level waittill roundstart // Comment out this line using '//' before it to be able to set the bomb when alone on the map ( just for testing )


thread desk_document_check
level waittill axiswin


end // end of main

// Document checks

desk_document_check:

while(1)
{
{
$documents hide
break
}
waitframe
}
teamwin allies
end


any helpers?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

What's the purpose of this?

Code: Select all

desk_document_check: 
    while(1) 
    { 
        { // <---- ????
          $documents hide 
          break 
        } 
        waitframe 
    } 
    teamwin allies 
end 
Image
tuffstuff7
Captain
Posts: 265
Joined: Mon Jan 06, 2003 12:59 am
Contact:

Post by tuffstuff7 »

well jv i have never messed with a obj map look at the tut here at .nap that is where isgot the whole script but let me know ifi have edited wrong
again ty
tuff
Post Reply