I programmed a guard that, when it is killed, it will end the game. If a player did it (like me), it works properly. But if an ally guard that is on the same team as me were to kill it, it would not transmit the endgame signal.
Please select what you are reporting on:
Creative
What Type of Bug are you experiencing?
Devices
Steps to Reproduce
Try to make guards fight each other and program the enemy guard that when killed it will send a signal to end the game. One is on the side of the player and one to another team. If the allied guard killed it, it will not transmit the end game signal. I did it in End Game Device when eliminated the guard it will activate.
Expected Result
The enemy guard should transmit a signal if eliminated by anyone, whether it is the player, guard, or anything else.
Observed Result
Instead of ending the game, the game will continue as if nothing had happened.
The Score devices incremented as expected, but the endgame device would not trigger.
Reading the tooltips - It requires the winning team to have a player. So I guess it’s to be expected that if guards are on teams 2 and 3 (and player is on team 1) that it would not be triggered. - But I set it up as you described (You and a guard on a team together) and it was not triggered
Another observation - I set up the end-game device to trigger once the score managers reach a certain threshold (max triggers) and this also would only trigger when the threshold is reached by a player elimination.
Interesting bug - A workaround might involve calling the end game device’s Activate function in Verse and manually passing in a player as the agent.
It is hard for me to code, so I keep trying to do it using devices. I figured that everything related to winning, the Guards who are acting as allies, cannot win the game in any form for the player. This includes timers or objective countdowns connected to the endgame device; both will activate and will start to count, but at the end, they won’t trigger the endgame device. A monster spawned connected to an endgame device, if defeated, also won’t activate the endgame device if defeated by an allied guard. Objectives connected to the endgame device cannot be attacked by allied guards, even when forced, and if accidentally destroyed by allied guards, it still won’t end the game. It also doesn’t reveal the actor of the objective when hidden at first. This is all if the triggering enemy guard is defeated by an allied guard.
The workarounds that work without verse, in terms of allied guards killing an enemy guard is spawning a power-up for the player to take to win, enabling an area for the player to stay to win, or enabling the chair. The chair works for me. Whoever kills the enemy will enable the chair so the character can sit to win.
So, in general, Allied Guards cannot win a game for the player, even if they are on the same team.