Jump to content

Demo charges


teppe

Recommended Posts

I know that if you should set a script up like the player doesnt have any more demos back i know how it has to be set up, unless the trigger and group?

Trigger: I need help to what trigger there should be if you have to make a objective fail if player doesnt have any demos left

Group: Dont know

Script:

Continue exxecuting response if (the value of the value of counter - demo charges required) is greater than (the number of demo charges availbable to Player Platoon).

Help

Teppe

Link to comment
Share on other sites

This stuff is available in original game, plus many mods. Open other scripts in Igor and look at them.

Group: <Default>

Comment:

SETUP

Trigger Event:

The simulation is starting.

Responses:

Set Player Platoon to (The player-controlled platoon).

Set Demo counter to 2.

Enable the DEMO CHECK script blocks.

Group: <Default>

Comment:

DEMO 01

Trigger Event:

A demo charge was placed within 10 meter(s) of Zone Demo 01 .

Responses:

Decrement Demo counter.

Group: <Default>

Comment:

DEMO 02

Trigger Event:

A demo charge was placed within 10 meter(s) of Zone Demo 02.

Responses:

Decrement Demo counter.

Group: DEMO CHECK

Comment:

5 SECONDS CHECK

Trigger Event:

5 second(s) elapsed.

Responses:

Allow this block to be reactivated.

If ((The value of Demo counter) is equal to 0), stop and queue a call to DEMO STOP.

Continue executing responses if ((The number of demo charges available to Player Platoon) is less than (The value of Demo counter)).

Mark Objective 1 failed in the objective list.

Prevent this block from being reactivated.

Group: DEMO STOP

Comment:

END CHECKS / OBJ 01 OKI

Trigger Event:

This block has been called directly from the script.

Responses:

Disable the DEMO CHECK script blocks.

Mark Objective 1 complete in the objective list.

Basic file included.

Spend time to read through the old topics.

demo_charge_check.zip

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.

×
×
  • Create New...