Stuck

Category: Objects / Status
Since engine version: 5.1 OC

Description

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

Syntax

bool Stuck();

Example

if(GetCursor()->Stuck()) GetCursor()->Message("Help!");
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, VerticesStuck
Sven2, 2002-08