Only the first time. Is it a hub, or are you expecting players to respawn?Potnop wrote:K. Will the ENTER script get run every time the player enters the map or only the first time?
Can I make player start with fists?
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
- Project Shadowcat
- Posts: 9369
- Joined: Thu Jul 14, 2005 8:33 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: Blacksburg, SC USA
- Contact:
Re: Can I make player start with fists?
Re: Can I make player start with fists?
Probably a hub.
- XutaWoo
- Posts: 4005
- Joined: Sat Dec 30, 2006 4:25 pm
- Location: beautiful hills of those who are friends
- Contact:
Re: Can I make player start with fists?
You'll have to copy the script then, with a different script number and RESPAWN instead of ENTER. Don't get rid of the ENTER script, though.
- Macil
- Posts: 2529
- Joined: Mon Mar 22, 2004 7:00 pm
- Preferred Pronouns: He/Him
- Location: California, USA. Previously known as "Agent ME".
- Contact:
Re: Can I make player start with fists?
ENTER will run for every player the first time they enter a level (important: enter scripts don't always only run when the level starts - players can join in partway through a level and run their ENTER scripts). You can also use RESPAWN for when players respawn.Potnop wrote:K. Will the ENTER script get run every time the player enters the map or only the first time?
If you need to run a script when arriving back to a map, use an UNLOAD script (which runs when the level is left) and delay(1); in it. Everything after the delay(1); will run when the map is re-entered (but not activated by a player obviously. If you need to do something specific to a player, then you'll need to use some hackery of scripts).