trigger help

ghostknife

New Member
Reaction score
0
i want the door to open when a unit enters a distance of the door and i cant figure out what's wrong



Doors
Events
Unit - Any Unit Enters a distance of 5.0 from (Unit attached to Region 002)
Local Variables
Conditions
Actions
Unit - Activate Ability cooldowns on ability Supply Depot - Raise Copy (Supply Depot) on unit (Picked unit)

and then to close the door


Doors 2
Events
Unit - Any Unit Leaves a distance of 5.0 from (Unit attached to Region 002)
Local Variables
Conditions
Actions
Unit - Activate Ability cooldowns on ability Supply Depot - Raise Copy (Supply Depot) on unit (Picked unit)
 
Your problem will be that your region is not attached to a unit. There are two ways this can be fixed:

1) Remove your region completely and just use a Unit Enter/Leaves Range of Unit Event. In this case, your second unit parameter will be the door:
Trigger:
  • Events
    • Unit - Any Unit Enters a distance of 5.0 from Door

2) Keep your region and change the event to Unit Enter/Leaves Region.

The second option is probably easier given you have already created your regions but if you have multiple doors, then the first option allows you to avoid using regions.

EDIT: I also just realized that your action won't work. You need to Issue your door an Order to use the ability. Use the Issue Order action and set the order to Order with No Target and the Ability Command to Lower (Supply Depot).
 
like this?

Doors
Events
Unit - Any Unit Enters a distance of 2.0 from door [119.00, 118.00]
Local Variables
Conditions
Actions
Unit - Order (Triggering unit) to (Supply Depot - Lower Copy (Supply Depot)) (After Existing Orders)

still doens't work
 
Events
Unit - Any Unit Enters a distance of 5.0 from Supply Depot [89.00, 115.00]
Local Variables
Supply Depot = No Unit <Unit>
Conditions
Actions
Variable - Set Supply Depot = Supply Depot [89.00, 115.00]
Unit - Order Supply Depot to (Supply Depot - Lower (Supply Depot)) (Before Existing Orders)

That worked for me, dunno if its what your looking for however
 
Doors
Events
Unit - Any Unit Enters a distance of 2.0 from door [119.00, 118.00]
Local Variables
Conditions
Actions
Unit - Order (Triggering unit) to (Supply Depot - Lower Copy (Supply Depot)) (After Existing Orders)

still doens't work

Triggering unit is the unit entering the range of the door. In your action, you need to specify the door rather than the Triggering Unit. Hence it should look like this:
Trigger:
  • Doors
    • Events
      • Unit - Any Unit Enters a distance of 2.0 from door [119.00, 118.00]
    • Local Variables
    • Conditions
    • Actions
      • Unit - Order door [119.00, 118.00] to (Supply Depot - Lower Copy (Supply Depot)) (After Existing Orders)
 
Well you could always try to do it through the data editor and use an Interact ability which has the effect of Issue Order to open the door. I haven't really looked into whether that is possible though.
 
new trigger try

door1
Events
Unit Selection - Any Unit is Selected by player Any Player
Local Variables
Conditions
(Unit type of (Triggering unit)) == door
Actions
Unit - Order (Picked unit) to (Supply Depot - Lower Copy (Supply Depot)) (Before Existing Orders)
General - Wait 10.0 Real Time seconds
Unit - Order (Picked unit) to (Supply Depot - Raise Copy (Supply Depot)) (Before Existing Orders)
 
good idea but

Well you could always try to do it through the data editor and use an Interact ability which has the effect of Issue Order to open the door. I haven't really looked into whether that is possible though.


tryed that... this seemed more easier
 
yeah!!

fixed it il show trigger


door1
Events
Unit Selection - Any Unit is Selected by player Any Player
Local Variables
Conditions
And
Conditions
((Triggering unit) is visible to player (Triggering player)) == true
(Unit type of (Triggering unit)) == door
Actions
Unit - Order (Triggering unit) to (Supply Depot - Lower Copy (Supply Depot)) (Before Existing Orders)
General - Wait 10.0 Real Time seconds
Unit - Order (Triggering unit) to (Supply Depot - Raise Copy (Supply Depot)) (Before Existing Orders)

not that u guys dint help me:p
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top