Can I make player start with fists?

Archive of the old editing forum
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.
User avatar
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?

Post by Project Shadowcat »

Potnop wrote:K. Will the ENTER script get run every time the player enters the map or only the first time?
Only the first time. Is it a hub, or are you expecting players to respawn?
User avatar
Potnop
Posts: 106
Joined: Tue Dec 19, 2006 7:24 pm

Re: Can I make player start with fists?

Post by Potnop »

Probably a hub.
User avatar
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?

Post by XutaWoo »

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.
User avatar
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?

Post by Macil »

Potnop wrote:K. Will the ENTER script get run every time the player enters the map or only the first time?
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.
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).
Locked

Return to “Editing (Archive)”