Topic Triggers wont work properly
Dudki #438
Dudki
I have 2 problems in the editor right now that i dont know how to fix.

1. Owner of Triggering Unit

The (Owner of (Triggering Unit)) ==1 Action should normally work like lets say if any unit owned by player 1 enters the certain region. But somehow when an enemy unit enters the region, the triggers i have set starts to run.

2. Spawning Falling Rock.

Im trying to make it so when a unit enters a distance between a point, it will spawn one of those falling rocks you often see in the Char missions in Wings of Liberty.

I have this trigger:

Events:
Unit - Any Unit Enters within 4.5 of Falling Rock 1
Local Variables
Conditions
(Owner of (Triggering unit)) == 1
Actions
Trigger - Turn (Current trigger) Off
Actor - Create actor Char Falling Boulder at point Falling Rock 1

Is there anything i have done wrong here?
Dudki #438
Dudki
Also, I tried the second problem on another map, and it worked fine. I dont quite get why it wont work here. If anyone knows pls post
jhawƙ #284
jhawƙ
12/01/2012 18:03Posted by Dudki
The (Owner of (Triggering Unit)) ==1 Action
You mean condition, not action.

12/01/2012 18:03Posted by Dudki
But somehow when an enemy unit enters the region, the triggers i have set starts to run.
Doesn't make sense, show us your (full) trigger. Check that there aren't any other triggers causing it.

2. Spawning Falling Rock.

Im trying to make it so when a unit enters a distance between a point, it will spawn one of those falling rocks you often see in the Char missions in Wings of Liberty.
State your problem. All you're telling us is what you want to do, not where it's going wrong.
BloodRayne #327
BloodRayne
Edited by BloodRayne on 18/02/13 22:11 (GMT)
I also have a trouble of this kind.

I have this map where I have a bonus objective to kill 3 eggs.
The first time coding the trigger I got the objective to work. (counter worked in and all)
But this time around I set this bonus objective active from the getgo.

Now I wanted it to be added when any User controlled unit walked within the specified region for the objective to be triggered.
I also created a little transmission for it.
but now the trigger does fire. I never get the objective nor the transmissin to take place even when I'm walking through the region.
funniest of all is that the Objective does exist, but never gets shown by the specific trigger that does that. I found out about that when I still just killed al 3 eggs and suddenly I had completed the objective. (which up to that point wasn't visible)

the trigger that should fire the moment of "showing" the objective is this:

Trigger name: Activate B1 - Chrysalis
Events
- Unit - Any unit enters region "trigger B1"
Local Vars [n/a]
Conditions:
- Owner of triggering unit == P1 (User)
- Current trigger is on == true
Actions:
- Trigger - Add actions to action queue
* AI - Pause AI time
* Transmission - send transmission to Active players ...
* AI Unpause AI time
* Objective - Show B1 (Chrysalis) for all players
* General - Wait 1 realtime seconds
* Trigger - Run B1 (Chrysalis pings)
* Trigger - Turn current trigger off


The trigger that is activated in the second to last line will create a minimap ping and reveal the area with a 2 radius for all 3 locations.

Please help?
I'm up to here with this damn trigger thing and I just can't see why the trigger does fire?

EDIT:
I just now made 2 more triggers that should fire a failed objective where in each a sepcific unit would die. for both if these triggers I used largely the same structure except ofcourse that the Event is "Unit - Any unit dies" and with conditions: Triggering unit is 'xxx' and triggering owner is USER.
Also these triggers seem not to work. even when the unit in question dies (whenever in the game) the objective does not change to be failed.
I'm getting the weird idea that for some reason it just isn't registering the events?
But why?

Please report any Code of Conduct violations, including:

Threats of violence. We take these seriously and will alert the proper authorities.

Posts containing personal information about other players. This includes physical addresses, e-mail addresses, phone numbers, and inappropriate photos and/or videos.

Harassing or discriminatory language. This will not be tolerated.

Click here to view the Forums Code of Conduct.

Report Post # written by
Reason
Explain (256 characters max)

Reported!

[Close]