That was my first thought too, but the trigger wouldn't even be running if the value of (Owner of (Triggering Unit)) were outside the array, because of the conditions I set.
Alright well I am flummoxed. I've gone over this trigger again and again even rewriting it from scratch once and it just refuses to work.
It produces this error:
Quote:
Parameter out of bounds in
'sUnitCreate' (value: 16, min: 0, max: 15)
Trigger Error in 'gt_Respawn_Func':
e_arrayIndexUnderflow
And I cannot figure out why. Here's the trigger:
RespawnEventsUnit-AnyUnitdiesLocalVariablesSpawnEffect=NoActor<Actor>Conditions(Ownerof(Triggeringunit))<15(Ownerof(Triggeringunit))>0ActionsCamera-Lockcamerainputforplayer(Ownerof(Triggeringunit))UI-Display((Nameofplayer(Ownerof(Triggeringunit)))+" has fallen!")for(Allplayers)toSubtitleareaGeneral-Wait2.0GameTimesecondsGeneral-If(Conditions)thendo(Actions)elsedo(Actions)IfTeamGame==trueThenGeneral-If(Conditions)thendo(Actions)elsedo(Actions)If((Triggeringunit)isinBlueTeam)==trueThenUnit-Create1PlayerCharacterType[(Ownerof(Triggeringunit))] for player (Owner of (Triggering unit)) at CharacterSpawn[(Randomintegerbetween0and1)] facing (Center of GameType) (No Options)
Variable - Set PlayerCharacter[(Ownerof(Triggeringunit))] = (Last created unit)
Unit - Set PlayerCharacter[(Ownerof(Triggeringunit))] team color to PlayerCharacterColor[(Ownerof(Triggeringunit))]
Else
Unit - Create 1 PlayerCharacterType[(Ownerof(Triggeringunit))] for player (Owner of (Triggering unit)) at CharacterSpawn[(Randomintegerbetween2and3)] facing (Center of GameType) (No Options)
Variable - Set PlayerCharacter[(Ownerof(Triggeringunit))] = (Last created unit)
Unit - Set PlayerCharacter[(Ownerof(Triggeringunit))] team color to PlayerCharacterColor[(Ownerof(Triggeringunit))]
Else
Unit - Create 1 PlayerCharacterType[(Ownerof(Triggeringunit))] for player (Owner of (Triggering unit)) at CharacterSpawn[(Randomintegerbetween0and3)] facing (Center of GameType) (No Options)
Variable - Set PlayerCharacter[(Ownerof(Triggeringunit))] = (Last created unit)
Unit - Set PlayerCharacter[(Ownerof(Triggeringunit))] team color to PlayerCharacterColor[(Ownerof(Triggeringunit))]
Unit - Turn PlayerCharacter[(Ownerof(Triggeringunit))] Highlightable state Off
Unit - Turn PlayerCharacter[(Ownerof(Triggeringunit))] Status Bar state Off
Actor - Create actor TimeWarpLaunch (Unnamed) at point (Position of PlayerCharacter[(Triggeringplayer)])
Variable - Set SpawnEffect = (Last created actor)
Camera - Apply camera object Rotation (Facing of PlayerCharacter[(Ownerof(Triggeringunit))]) for player (Owner of (Triggering unit)) over 2.0 seconds with Existing Velocity% initial velocity and 10% deceleration
General - If (Conditions) then do (Actions) else do (Actions)
If
TeamGame == true
Then
General - If (Conditions) then do (Actions) else do (Actions)
If
((Triggering unit) is in BlueTeam) == true
Then
Unit Group - Add PlayerCharacter[(Ownerof(Triggeringunit))] to BlueTeam
Else
Unit Group - Add PlayerCharacter[(Ownerof(Triggeringunit))] to RedTeam
Else
General - Wait 2.0 Game Time seconds
Actor - Kill actor model SpawnEffect
Camera - Unlock camera input for player (Owner of (Triggering unit))
0
Wow that's some awesome stuff.
Have you gotten it to work online? If my own experience is anything to go by, I can't see how this map will be playable on B.net. (because of lag)
0
That was my first thought too, but the trigger wouldn't even be running if the value of (Owner of (Triggering Unit)) were outside the array, because of the conditions I set.
Map's already uploaded actually, since this is the only major bug. http://www.sc2mapster.com/maps/templar-battles/
0
I just put up my first beta release of the 3rd-person hero arena I am working on.
http://www.sc2mapster.com/maps/templar-battles/
It has four different game modes and fully functional WASD movement with mouselook.
0
Alright well I am flummoxed. I've gone over this trigger again and again even rewriting it from scratch once and it just refuses to work.
It produces this error:
And I cannot figure out why. Here's the trigger:
I could really use some help on this one.
0
I'm not sure if this'll work but you could try scaling up the lighting doodad.
0
This trigger should do what you want and work "right out of the box" so to speak, just set the event region to the region you want.
0
Can it import any .mp3 or does it have to be in some other format?
0
This error showed up in my map upon opening it in the editor as well. A map that was last saved pre-patch.
0
I'm having the same problem.
This is nervewracking. Has blizzard changed something that means that all the hard work we've done up until this point is down the tubes?
0
Wow this is helpful.
I can't get my mind around the reasoning behind using (Triggering Player) in the Event. Could you explain that?