Hi, I have recently found an odd error that happens to my trigger when I am using the "wait" action. Without it, the trigger runs perfectly fine. The error is as follows,
00:00:30.94 Trigger Error in 'gt_Respawn_Func': Parameter out of bounds in 'sUnitCreate' (value: -1, min: 0, max: 15)
00:00:30.94 Trigger Error in 'gt_Respawn_Func': Parameter out of bounds in 'CameraPan' (value: -1, min: 0, max: 15)
My trigger is as follows,
Events
Unit - Any Unit dies
Conditions
(Unit type of (Triggering unit)) != Probe
(Unit type of (Triggering unit)) != Medic
(Owner of (Triggering unit)) != 4
(Owner of (Triggering unit)) != 5
Actions
General - Wait 10.0 Real Time seconds
Unit - Create 1 Probe for player (Triggering player) at (Center of unit selection) using default facing (No Options)
Camera - Pan the camera for player (Triggering player) to (Center of unit selection) over 0.0 seconds with Existing Velocity% initial velocity, 0% deceleration, and Do Not use smart panning
You can't use "Triggering player" and such functions after a wait action. Wait actions wipe all "triggering (thing)" functions. What you have to do is create a local variable, set it to what you need (in this case an integer that is "triggering player") and instead of triggering player use that variable.
Hi, I have recently found an odd error that happens to my trigger when I am using the "wait" action. Without it, the trigger runs perfectly fine. The error is as follows,
00:00:30.94 Trigger Error in 'gt_Respawn_Func': Parameter out of bounds in 'sUnitCreate' (value: -1, min: 0, max: 15) 00:00:30.94 Trigger Error in 'gt_Respawn_Func': Parameter out of bounds in 'CameraPan' (value: -1, min: 0, max: 15)
My trigger is as follows,
Events Unit - Any Unit dies Conditions (Unit type of (Triggering unit)) != Probe (Unit type of (Triggering unit)) != Medic (Owner of (Triggering unit)) != 4 (Owner of (Triggering unit)) != 5 Actions General - Wait 10.0 Real Time seconds Unit - Create 1 Probe for player (Triggering player) at (Center of unit selection) using default facing (No Options) Camera - Pan the camera for player (Triggering player) to (Center of unit selection) over 0.0 seconds with Existing Velocity% initial velocity, 0% deceleration, and Do Not use smart panning
Any help will be appreciated!
You can't use "Triggering player" and such functions after a wait action. Wait actions wipe all "triggering (thing)" functions. What you have to do is create a local variable, set it to what you need (in this case an integer that is "triggering player") and instead of triggering player use that variable.
It works now, thanks.