Difference between revisions of "Manual:DIL Manual/position update()"

From DikuMUD Wiki
Jump to navigation Jump to search
(XML import)
 
(XML import)
 
Line 1: Line 1:
 +
<span id="bpp_u"></span>
 +
position_update ( u : unitptr )
 +
    u : A pointer to a player or a monster. The character will be
 +
        updated and perhaps killed, incapacitated, mortally
 +
        wounded, revived, etc. depending on current hitpoints.
 +
        Useful when tampering with the 'hp' field. Example:
  
 
+
        pc.hp := pc.hp - 100;
 +
        position_update(pc);
 
<span id="bpp_u"></span>
 
<span id="bpp_u"></span>
 
  position_update ( u : unitptr )
 
  position_update ( u : unitptr )

Latest revision as of 22:30, 4 December 2025

position_update ( u : unitptr )
   u : A pointer to a player or a monster. The character will be
       updated and perhaps killed, incapacitated, mortally
       wounded, revived, etc. depending on current hitpoints.
       Useful when tampering with the 'hp' field. Example:
       pc.hp := pc.hp - 100;
       position_update(pc);

position_update ( u : unitptr )
   u : A pointer to a player or a monster. The character will be
       updated and perhaps killed, incapacitated, mortally
       wounded, revived, etc. depending on current hitpoints.
       Useful when tampering with the 'hp' field. Example:
       pc.hp := pc.hp - 100;
       position_update(pc);