Thing_Stop

From ZDoom Wiki
Revision as of 15:31, 3 March 2015 by Quaker540 (talk | contribs) (→‎Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

19:Thing_Stop (tid)


Usage

This stops the specified actor's current movement by setting its acceleration and speed to 0.

Example

This example freezes the player and prints a message to the player, as well as freezing him in place.

Script 1 (VOID)
{
        Print(s:"STOP RIGHT THERE YOU FREAK!");

        Thing_Stop(0);
        SetPlayerProperty(0, 1, PROP_TOTALLYFROZEN);
}