1
Ask a Question / Re: why isnt this respawn code working?
« on: September 22, 2023, 03:07:07 am »
Hi
When you kill and actor you also stop any of it's timed actions. No actor is created after two seconds because the actor that was going to create it no longer exists. You will need to use scene behaviours somewhere.
If you want yo use this code you can just move the "do after two seconds" block to a custom event (Add Event, Advanced) in the scenes events and when the player is killed have it trigger this with a trigger in scene block (Behaviours, Triggers).
Hope this helps
When you kill and actor you also stop any of it's timed actions. No actor is created after two seconds because the actor that was going to create it no longer exists. You will need to use scene behaviours somewhere.
If you want yo use this code you can just move the "do after two seconds" block to a custom event (Add Event, Advanced) in the scenes events and when the player is killed have it trigger this with a trigger in scene block (Behaviours, Triggers).
Hope this helps