I PMed shadov3x a solution to his problem, figured it would save some time and hopefully get my problem solved (since I can't seem to figure it out myself) a bit faster.
In some situations, using "Triggering Player" Instead of "Owner of (Triggering unit)" Will return -1. There's nothing you can do to avoid this, other than just using "Owner of (Triggering unit)".
That's very strange, as it only started doing this today when I've been making/testing this map for the last week and I made this trigger the second day.
Anyway, I've got another problem. I'm trying to make a trigger that stops a player from blocking pathing from one place to another. My event is Unit is Created and my condition is pathing between two points != true. My action is to remove triggering progress unit from the game and refund the triggering player resources equal to the unit cost. It doesn't seem to be working.
Doesn't work with triggering progress unit (throws some error) but using Created Unit works. Now the only problem is getting the trigger to actually fire correctly. I can't ever seem to get
to evaluate to true without manually adding pathing blockers in the editor. All of my buildings I'm testing with have a 1x1 or 2x2 pathing footprint, and they are blocking unit pathing.
Ok I've figured out part of my problem. The parameter out of bounds is the player. The question is, how is it that I am player -1? I've developed a workaround replacing Triggering Player with Owner of Unit: Triggering Progress Unit. I really want to know what happened, how did I become Player -1, according to this trigger, even though every other trigger I have that uses Triggering Player works perfectly fine?
Could you help me troubleshoot this? I'm getting "Trigger Error in 'gt_Bunkers_Func': Parameter out of bounds in 'sUniteCreate' (value:-1, min: 0, max: 15)"
Before, it would spawn the Marine and load him into the Bunker correctly, now I get that error and the Marine doesn't spawn. I haven't changed the trigger or the Marine/Bunker. The only things that I can think of that might have done anything are that I added some pathing blockers (then removed them because I realized they wouldn't work for what I wanted to do) and changed the SCV's build ability to not require the SCV to sit there.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Nevermind on the first part, but it won't account for any remainders. I got confused on your variable name.
I PMed shadov3x a solution to his problem, figured it would save some time and hopefully get my problem solved (since I can't seem to figure it out myself) a bit faster.
That's very strange, as it only started doing this today when I've been making/testing this map for the last week and I made this trigger the second day.
Anyway, I've got another problem. I'm trying to make a trigger that stops a player from blocking pathing from one place to another. My event is Unit is Created and my condition is pathing between two points != true. My action is to remove triggering progress unit from the game and refund the triggering player resources equal to the unit cost. It doesn't seem to be working.
Doesn't work with triggering progress unit (throws some error) but using Created Unit works. Now the only problem is getting the trigger to actually fire correctly. I can't ever seem to get
to evaluate to true without manually adding pathing blockers in the editor. All of my buildings I'm testing with have a 1x1 or 2x2 pathing footprint, and they are blocking unit pathing.
Ok I've figured out part of my problem. The parameter out of bounds is the player. The question is, how is it that I am player -1? I've developed a workaround replacing Triggering Player with Owner of Unit: Triggering Progress Unit. I really want to know what happened, how did I become Player -1, according to this trigger, even though every other trigger I have that uses Triggering Player works perfectly fine?
@JustBlaZze: Go
The gibberish is the map. Go to File>Save Page As if you're using Firefox. There should be something similar for Explorer and other browsers.
Could you help me troubleshoot this? I'm getting "Trigger Error in 'gt_Bunkers_Func': Parameter out of bounds in 'sUniteCreate' (value:-1, min: 0, max: 15)"
Here's my trigger:
Before, it would spawn the Marine and load him into the Bunker correctly, now I get that error and the Marine doesn't spawn. I haven't changed the trigger or the Marine/Bunker. The only things that I can think of that might have done anything are that I added some pathing blockers (then removed them because I realized they wouldn't work for what I wanted to do) and changed the SCV's build ability to not require the SCV to sit there.