I am keep getting the error Parameter Out of Bounds in
'GameOver'
(value:16, min 0, max: 15)
when I eliminate computer players and the
trigger is supposed to end those players in defeat
Here is my code:
Event: Unit-Any Unit dies
Conditions: (Unit type of (Triggering unit))== Life (this is unit name)
Actions:
............text displays to the player that he has been defeated
.............wait 4 game time seconds
.............game-End game in Defeat for player (Owner of Triggering unit))
Am I getting the error only because the opponents are computers?
Is the player actually in the game? If you're testing the map, maybe there are no computers at all; or maybe you're using a trigger to boot non-active players etc.
It's both. When game starts, my another trigger automatically kills nonactive computer player's Life unit.
when I kill active computer's Life unit, I get the same error.'
So are you saying this error won't appear when playing humans?
I am keep getting the error Parameter Out of Bounds in 'GameOver' (value:16, min 0, max: 15) when I eliminate computer players and the trigger is supposed to end those players in defeat
Here is my code:
Event: Unit-Any Unit dies Conditions: (Unit type of (Triggering unit))== Life (this is unit name)
Actions: ............text displays to the player that he has been defeated
.............wait 4 game time seconds
.............game-End game in Defeat for player (Owner of Triggering unit))
Am I getting the error only because the opponents are computers?
Is the player actually in the game? If you're testing the map, maybe there are no computers at all; or maybe you're using a trigger to boot non-active players etc.
The error means the triggering unit has no owner.
It's both. When game starts, my another trigger automatically kills nonactive computer player's Life unit. when I kill active computer's Life unit, I get the same error.'
So are you saying this error won't appear when playing humans?