waitthread global/items.scr::add_item "explosive" //gives player explosives
waitthread global/objectives.scr::add_objectives 1 2 (WHAT DO THESE ONE AND TWO NUMBERS MEAN)"Bomb the wall to get in." $obj1.origin
thread obj1
end
obj1:
$bomb1_trigger waittill trigger
$bomb1 model "animate/explosive.tik"
$bomb1 playsound explosive
$player loopsound bombtick
$player stopwatch 5
wait 5
$player stoploopsound bombtick
$bomb1 playsound explode_tank
$bomb1 remove
waitthread global/exploder.scr::explode 1
radiusdamage $hurtobject1 256 384
waitthread global/objectives.scr::add_objectives 1 3 "Bomb the wall to get in." $obj1.origin(AND WHY IS IT REPEATED HERE BUT THE TWO CHANGED TO A THREE)
wait 2
i don't get why its 1 2 and then repeated its 1 3 and in the next objective its 2 2 and then repeated its 2 3.
i basically understand everthing except this as when i add more objectives they do not come up objective completed new objective added, on the screen why is this
i need to know what these numbers mean
Moderator: Moderators
-
nuggets
- General
- Posts: 1006
- Joined: Fri Feb 28, 2003 2:57 am
- Location: U-england-K (england in the UK) :P
- Contact:
//*********************************************************************************************************************************************
//*** add / modify an objective in the list
//*** this will replace an objective if you use a number that already exists
//*** if any field entered contains a 0, it's left at what it was
//*** syntax --------------------------------
//*** add_objectives <objective number> <status|1-don't draw, 2-in progress, 3-completed> [objective text] [associated location in map|vector]
//*********************************************************************************************************************************************
add_objectives local.index local.status local.objective local.location:
local.objective = waitthread global/string_format.scr::str_format local.objective 41
addobjective local.index local.status local.objective local.location
end
//*************************************************
//*** set the current objective
//*** syntax ---------------------------------
//*** current_objectives <number of objective>
//*************************************************
current_objectives local.index:
setcurrentobjective local.index
end
//*** add / modify an objective in the list
//*** this will replace an objective if you use a number that already exists
//*** if any field entered contains a 0, it's left at what it was
//*** syntax --------------------------------
//*** add_objectives <objective number> <status|1-don't draw, 2-in progress, 3-completed> [objective text] [associated location in map|vector]
//*********************************************************************************************************************************************
add_objectives local.index local.status local.objective local.location:
local.objective = waitthread global/string_format.scr::str_format local.objective 41
addobjective local.index local.status local.objective local.location
end
//*************************************************
//*** set the current objective
//*** syntax ---------------------------------
//*** current_objectives <number of objective>
//*************************************************
current_objectives local.index:
setcurrentobjective local.index
end
hope this helps, prob not cos it's all foreign 2 me :-/