Jump to content
Sign in to follow this  
Zarele

Triggers in script: activated, counting, etc

Recommended Posts

Hi this is my first post on this forum after a long period of reading.

I have a fuw questions about triggers in scripts.

1) How can you detect in a script if a trigger is activated? And how can i start someting else with it => ? ( trigger is activated) : goto "next thing"

2) Is there a way to count how many times a trigger is activated? Maybee even bye a sertain player?

3) How can i give waypoints (pos of marker) to a player (in mp), the kind of yellow box with distance ( and it stays until it is reached)?

many thanks in advance

greetz Zarele

Share this post


Link to post
Share on other sites

1) Use variables.

Trigger:

On Activation: trig1=true

Script:

? trig1 : whatever

2) Yes and yes.

init.sqs

trig1=false

Trigger:

On Activation: trig1=true

On Deactivation: trig1=false

Counting script:

trig1counter=0

#loop

@trig1

trig1counter=trig1counter+1

@(not trig1)

goto "loop"

If you want it to be player only, name the trigger trigger1 and add something to the script about

? (list trigger1 select 0) == player : whatever

Syntax, details, etc. not guaranteed.

3) Don't. Think of a better and more fun way to give the player the information he needs. Do you get yellow boxes in RL? Do you like it when people (bossy teachers, irate parents, mission designers) tell you want to do? Exactly. Veteran mode is much more fun, everybody says so. xmas_o.gif

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  

×