How could I make a map refresh when you die and respawn?
7 replies, posted
Like the title says, I'm making a map, that needs everything to respawn/retry/refresh when the player die.
How would i go about doing it?
Thanks in advance?
...Doesn't it do that automatically?
Not in Gmod.
Tricky, you'd need to detect the player respawning with a trigger, and have all your entities listed in point_templates. You would then need the trigger to kill all everything and respawn it.
Alternatively, Lua.
[QUOTE=metallics;18094677]Tricky, you'd need to detect the player respawning with a trigger, and have all your entities listed in point_templates. You would then need the trigger to kill all everything and respawn it.
Alternatively, Lua.[/QUOTE]
This, without lua (also to prevent a retrigger) you could make the player get pushed or drop out of the info_player_start position. this could work also if you make everything triggered with a logic_relay to tidy it up, not that it really matters (i like to do things this way because it makes it easier to trigger from other areas).
Could I do it with autosaves or something?
Or just create a trigger right under the player spawn, and make it so that from the spawn you cant see all the map (like you spawn in a little room), and the trigger refreshes everything like metallics said..
it should work
well.. didn't phys_temple have a refresh button that when you pressed the map refreshed?
Sorry, you need to Log In to post a reply to this thread.