(solved, see below in ORANGE)
Hi there,
is there a known bug and is there a workaround, for objects that don't seem to respond to orders to despawn?
I have items that need to despawn at start, but I want a fail-safe for editing the map so that I don't get stuck never being able to select the items again. So, I set a script brain to send a message on Zulu at match start (which I could always delete anytime) and my items are set to despawn on a message from Zulu.
One light does despawn, but another one doesn't.
Also, is there a limitation to making invisible switches despawn on command? I cannot seem to get a switch to despawn at all...
I have a transit system partially constructed, where switches to open the door need to only be available when the "vehicle" is at that location, otherwise despawn (don't want door to open unless there is something to walk onto, rather than empty space falling to death). That is my preferred method, rather than putting something in to make it simply not work. I'd like the player to not have the "E" come up on screen until it is ready, rather than having the switch not work when pressed. A red light would indicate it's not ready, but I still don't want players to get confused...
Any thoughts?
Solution:
I solved it. It ended up being a problem I created unwittingly. The 2x2x2 blocks I use as respawn timers to make a red/green lights appear about the same time it takes for my car to arrive, use the "spawn" event of the block to send a message to the light to spawn. Because these blocks spawn on start match, they are respawning items that are also being told to despawn.
That is why it was doing this. I changed my script logic some and it now works perfectly.
In case anyone runs into something like this...
Setting objects to despawn (w/o a script) after a few seconds of a match/round does not seem to work. To get the same effect, I simply used 1 more spawn timer object to despawn on match start and then spawn soon, deactivating all things on the map you might want to hide on start (things that aren't in the players FOV at start, obviuosly)
on that note, does anyone know if "match start" means the time gameplay starts or when you enter the match and cinematics play?