Перейти к содержанию

Entity::applyForceToCenterOfMass

Материал из RAGE MP Wiki Archive

p6/relative - makes the xyz force not relative to world coords, but to something else
p7/highForce - setting false will make the force really low

Syntax

<syntaxhighlight lang="javascript">entity.applyForceToCenterOfMass(forceType, x, y, z, p5, isRel, highForce, p8);</syntaxhighlight>

Required Arguments

  • forceType: int
  • x: float
  • y: float
  • z: float
  • p5: Boolean
  • isRel: Boolean
  • highForce: Boolean
  • p8: Boolean

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also