Category: Objects
/ Status
Since engine version: 8.0 OC
Stuck
Description
Returns whether the object is stuck, meaning that one of its vertices is enclosed in solid matter. An optional offset can be specified, in which case it is checked whether the object would be stuck at the offset position.
Syntax
bool Stuck(int x, int y);
Parameters
- x:
- [opt] X offset for which stuck-status is checked.
- y:
- [opt] Y offset for which stuck-status is checked.
Examples
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.