Is this trigger correct?

MissKerrigan

Active Member
Reaction score
23
Hello Guys,

Finally my map is over 50% and I found the next issue
Actually it's more a question than an issue

In the first world (Terran World) there are about 10 levels
But only 1 level can be played at a time by a player so I made the next trigger

Trigger

event any unit enters region 'Player Terran Level 1'
condition unit type of unit is 'Predator'
action turn of current trigger
action play sound 'level entering' for 'triggering player' (convertion)
action wait 3 game seconds
action move 'triggering unit' instantly to region 'Start Terran Level 1'
action pan camera for player 'triggering player' to 'Start Terran Level 1'...

(I made a trigger which turns the trigger 'on' if a player makes the finish of the level or if the unit of a player dies)


question 1

Is there any possibility that 2 players enters the level at the same time?
Or does the computer knows the fact that only 1 player can play the level at a time?

question 2

Why is my trigger-action 'play sound' + 'pan camera' not working?


MissKerrigan
 

X-maul

AKA: Demtrod
Reaction score
201
Please for the love of god! put your copy your triggers into [CODE.] tags [CODE/.]

Question 1
No, you are turning it off the trigger, so it wont work for any unit entering the region.
(What you could do is to create a boolean variable and set it to true for the owner of the triggering unit)
Question 2
You should try to replace the "Triggering Player " with "Owner of Triggering Unit"
 

MissKerrigan

Active Member
Reaction score
23
question 1

the trigger works very fine mister... the 'turn current trigger off' will prevent multiple players playing the level at the same time, I just was wondering if there might any bug when 2 players move their unit in the region at the same time, if the computer counts only ONE unit which can enter the region before the trigger will be turned off, then it is allright

(again, don't try to set me up with variables, especially not boolan ones)

question 2

thank you for that!


btw, I tried to copy/paste the trigger but it isn't working
 

X-maul

AKA: Demtrod
Reaction score
201
question 1
Ahh, ok I misunderstood your question then :) Thought you meant if player 2 could activate it after player 1 had already done it.
question 2
Uhm, well if you have two triggers with the same event they will both fire, and if they turn themselfs off that wont work, you will have to make some conditions (for instance you could lock each trigger so they only work if player 1 controlls the unit).
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top