Unstick

Category: Objects / Position
Since engine version: 8.0 OC

Description

Tries to move an object by a few pixels if it is stuck in solid ground. Returns whether the object was moved.

Syntax

bool Unstick(int max_range);

Parameter

max_range:
[opt] Maximum movement range. Defaults to 7.
See also: SetPosition, Stuck, VerticesStuck
Sven2, 2016-09