A_Resurrect & ResurrectActor
Posted: Fri Dec 21, 2018 4:20 pm
DECORATE version - A_Resurrect
ACS version - ResurrectActor
Resurrect the calling actor. This function would be meant for players, for monsters, A_Respawn already exists.
There could be optional parameters for things such as enabling/disabling telefog, resetting/keeping stats, or being combined
with A_Respawn's ability to teleport the actor to their spawn point/playerstart, but such parameters are entirely optional since
a person can simply add those in after the fact when using said function with a state or script.
The code responsible for instantly reviving a player does exist within the console command "Resurrect". Implementing this code in the form of a function
would successfully allow a player actor to be resurrected without the use of a work-around.
ACS version - ResurrectActor
Resurrect the calling actor. This function would be meant for players, for monsters, A_Respawn already exists.
There could be optional parameters for things such as enabling/disabling telefog, resetting/keeping stats, or being combined
with A_Respawn's ability to teleport the actor to their spawn point/playerstart, but such parameters are entirely optional since
a person can simply add those in after the fact when using said function with a state or script.
The code responsible for instantly reviving a player does exist within the console command "Resurrect". Implementing this code in the form of a function
would successfully allow a player actor to be resurrected without the use of a work-around.