Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Delete terminals after use?

A topic by Scruffy86 created Apr 04, 2024 Views: 153 Replies: 2
Viewing posts 1 to 3

is there a way to delete terminals after they have been pressed once? I have a computer panel that when activated by  a script, spawns some enemies. If the player keeps pressing it, it will keep spawning enemies each time. I'd like for this to only occur once. 

Use variables.

Developer

Variables are the way to go. Just set one to 1 after terminal is done with its work and put a condition that tells to skip the code if variable is set to 1.