Jump to content
The Dark Mod Forums

How to: cancel or hide an objective if another objective is completed?


Bikerdude

Recommended Posts

Evening

 

Got a objectives, the first 2 are lethal objectives (3,4) and the second 2 (5,6) and non-leathal. What I would like to happen is -

  • if the player completes either of the lethal objective its cancels both of the non-leathal.
  • if the player completes either of the non-lethal objective its cancels both of the leathal.

Is there an easy way to do this in the objectives editor..?

Link to comment
Share on other sites

Yes, via entities. An important part is for your objective numbers to not change, as which are switched are specified by number.

 

There are two entities to choose from: atdm:target_setobjective_state or atdm:target_setobjective_visibility.

 

The former lets you set an objective to incomplete, complete, failed, or invalid. The latter makes it disappear or appear in the list.

 

See the Objectives wiki entry for full details, but basically...

 

If by cancel you mean you want them to disappear from the list, use two atdm:target_set_objective_visibility entities in your map.

 

Have the objective completion target of 5 and 6 activate the one which is set to have 3 and 4 disappear ("obj_id1 3" and "obj_id2 4" with "object_visibility 0"), and have the completion target of 3 and 4 set to the one that makes 5 and 6 disappear.

 

Alternatively, if you want the others to remain on the list but get checked off as complete, then use two atdm:target_setobjective_state entities in a similar fashion.

 

The same "obj_id#" spawnarg is used to specify which objective is affected. In this case, "obj_state" is set to "1" for complete, other numbers for other conditions (see pop-up in DR).

 

So all you do is put in two entities, target them from your four objectives upon completion, one of the two entities affects your non-lethal objectives, the other affects the others, make sense?

"The measure of a man's character is what he would do if he knew he never would be found out."

- Baron Thomas Babington Macauley

Link to comment
Share on other sites

Most welcome, let me know if any issues, I did all sorts of crazy objective control in my last mission.

"The measure of a man's character is what he would do if he knew he never would be found out."

- Baron Thomas Babington Macauley

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 2 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 5 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
×
×
  • Create New...