Home   Help Search Login Register  

Author Topic: Who is activating a trigger?  (Read 1102 times)

0 Members and 2 Guests are viewing this topic.

anderson

  • Guest
Who is activating a trigger?
« on: 18 Jul 2003, 20:04:13 »
I am making some multiplayer missions and cant seem to find something. Is it possible to know who is activating a trigger. Not just the side but define him as "Activator1" or something?

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Who is activating a trigger?
« Reply #1 on: 19 Jul 2003, 13:30:46 »
Let's say your trigger has been configured that way:

anybody/present/once

condition: this

Now this trigger will be activated by whoever enters it

In the onActivation field of the trigger you can use:

Activator1 = thislist select 0

to specify Activator1 as the one who has entered the
trigger first.

There's only one issue you need to think about when it
comes to multiplayer:

Activator1 will only be the player who is local on the machine,
where the trigger was activated.

e.g: player 1 enters the trigger and Activator1 = player 1
Then player 2 enters the trigger and Activator1 = player 2
on player 2's machine.

Therefore you could setup the trigger this way:

anybody/present/once

condition: this AND !activated

onActivation: Activator1 = this select 0; activated = true; publicvariable "activated"

hope this helps

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted