Entity::applyForceTo

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

forceType - 0 to 5 (any number greater then 5 force does nothing)
p8 - no effect (a quick disassembly will tell us what it does)
isRel - specifies if the force direction is relative to direction entity is facing (true), or static world direction (false).
p11/highForce - setting false will make the force really low

enum ForceTypes
{
MIN_FORCE = 0,
MAX_FORCE_ROT = 1,
MIN_FORCE_2 = 2,
MAX_FORCE_ROT_2 = 3, //stable, good for custom handling
FORCE_NO_ROT = 4,
FORCE_ROT_PLUS_FORCE = 5
};

Syntax

entity.applyForceTo(forceType, x, y, z, xRot, yRot, zRot, boneIndex, isRel, p10, highForce, p12, p13);

Required Arguments

  • forceType: int
  • x: float
  • y: float
  • z: float
  • xRot: float
  • yRot: float
  • zRot: float
  • boneIndex: int
  • isRel: Boolean
  • p10: Boolean
  • highForce: Boolean
  • p12: Boolean
  • p13: Boolean

Return value

  • Undefined

Example

// todo

See also