Stuck

Category: Objects / Status
Since engine version: 4.6.5.0 CP

Description

Returns whether an object is stuck, meaning that one of its vertices is enclosed in solid matter.

Syntax

bool Stuck (object pObject);

Parameter

pObject:
[opt] Object of which you want to know if it's stuck. Can be 0 in local calls.

Example

if(Stuck(GetCursor())) Message("Help!, "GetCursor());
Displays a message above the selected clonk of the first player if the clonk is stuck at the time the script is called.
See also: GetContact, GetMaterial, GetVertex
Sven2, August 2002