Fling

Category: Objects / Movement
Since engine version: 1.0 OC

Description

Flings an object into the specified direction. This function is designed for living beings as it will also set the tumbling activity.

Syntax

void Fling(int xdir, int ydir);

Parameters

xdir:
X flinging speed
ydir:
Y flinging speed

Example

GetCursor(0)->Fling(10, -15);
Throws the selected clonk up and to the right.
See also: Jump, SetXDir, SetYDir
Sven2, 2001-11