Jump to content
Sign in to follow this  
SolidSnake-(SNK)

Triggers and more

Recommended Posts

Hi

I'am working on a mission, but i'am a noob with scripting.

I want that some of the enemy officers have intel on them, so when they are dead and you walk up to the body you get a action to pick up intel. And then the intel shows up under a link in the briefing.

I have tryed to do this, but i dont get it to work:(

Any help is apreciated.

Share this post


Link to post
Share on other sites

It shudn't be too dificult.

First create your full briefing file. On the objective that shoud appear after the bad guy is dead, write the link to the "intel" section you create in the briefing.html.

On mission init write "X" objStatus "HIDDEN", where X is the objective number, so it doesn't appear from the beggining.

Then name your target (bad_guy, here) and create a trigger. Condition should look like: not alive bad_guy. And on Activation field run a script that creates any empty object or gamelogic, place it under the dead officer and then addAction to that object. This action, once activated, should run another script that turns the objective visible, by "X" objStatus "ACTIVE", and voila, your intel section appears on briefing via a link from that 'new' assigned objective.

Here's a section sample (write it just under the "plan" section"):

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"><a href="#section1">SECTION NAME</a>

-- links to --

<h4 align="center"><a name="section1">SECTION NAME</a></h4>

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×