Im trying to make make a mystery game and im adding hacker how do i end the game when the hacker reaches a percentage
For your percentage are you using a counter
if so you could set a target value to it and then get an endgame device
then wire the endgame device
to the counter
. The things in the wire would be
(Target Value reached - End game)
use a counter for percentage
then set a target value
wire the counter to an endgame device
make the wire like this - Target Value reached - End game
EDIT: oh i did not see you already said that Demo
So, it will most likely be a counter to track the percentage, right? If not, could you say what you are using? A tracked item amount? A property?
Put a trigger that has a delay to it. Then connect it to the endgame device. If you want to you can make a zone or another trigger with collisions and can’t be seen in game then connect it to the trigger that has a delay and then ta da! You have it.
well i need to do something wherethe hacker does something to make the counter go up can you give an example
nvm can I do something where i tell everbody that the hacker got a percentage
If they need to hack something, just use an overlay and maybe give them a 75% chance of successfully hacking. Every successful hack ticks the counter up and when it reaches said number, broadcast on a channel to the end-game.
Yeah, on that broadcast, you can broadcast to a relay instead and have it set to all other players.
how do i make it so they have a 75% chance
what would the target value be
Use A Counter And End Game Device And Put Them Together With Wires.
randomize a number between 1 - 100, if the chosen number is between 1- 75, it means the hack worked, if not, then that means the hack did not work.
I dunno, it’s your game.