rdfs:comment
| - This is a little script which I have found very useful in my mod. I wanted players to respawn in a freindly temple for most of the mod, but later on, I want to remove this ability (when tthe players are in an area outside the temple's influence).
- This conditional respawn script allows a module to temporarily disable respawning for particular player characters (PCs). This is accomplished by setting a local integer called RespawnDenied to a nonzero value on the PC in question. The local integer could be set, for example, in the OnEnter event for an area that is considered to be too distant from the respawn point, and cleared (set to 0) when exiting such an area. A PC that has this integer set will still be told that respawning is an option, but if that option is chosen, the PC will simply be left as a selectable, but not raisable, corpse.
|
abstract
| - This is a little script which I have found very useful in my mod. I wanted players to respawn in a freindly temple for most of the mod, but later on, I want to remove this ability (when tthe players are in an area outside the temple's influence). The first thing to do is to use a script to set a variable, ("vRespawnok"in my particular script)to the value 1 (or any value other than 0) , somewhwere in the are that you don't want players to be able to respawn You can use the SetLocalInt command,and place the script in the OnEnter section of the area properties, or attach it to a trigger, or even a useable object; a cursed altar perhaps?
- This conditional respawn script allows a module to temporarily disable respawning for particular player characters (PCs). This is accomplished by setting a local integer called RespawnDenied to a nonzero value on the PC in question. The local integer could be set, for example, in the OnEnter event for an area that is considered to be too distant from the respawn point, and cleared (set to 0) when exiting such an area. A PC that has this integer set will still be told that respawning is an option, but if that option is chosen, the PC will simply be left as a selectable, but not raisable, corpse. This script is intended to be the OnPlayerRespawn event handler for a module.
|