Native referenceFiveM

APPLY_FORCE_TO_ENTITY_CENTER_OF_MASS

0x18FF00FC7EFF559E ENTITY
FUNCTION SIGNATURE
void APPLY_FORCE_TO_ENTITY_CENTER_OF_MASS(Entity entity, int forceType, float x, float y, float z, int nComponent, BOOL bLocalForce, BOOL bScaleByMass, BOOL bApplyToChildren);
Property Value
Native Name APPLY_FORCE_TO_ENTITY_CENTER_OF_MASS
Hash 0x18FF00FC7EFF559E
Return Type void
Parameters entity (Entity), forceType (int), x (float), y (float), z (float), nComponent (int), bLocalForce (BOOL), bScaleByMass (BOOL), bApplyToChildren (BOOL)

Description: Apply a force to an entities center of mass.

Parameters

  • entity (Entity) — The entity handle
  • forceType (int) — The force type, see APPLY_FORCE_TO_ENTITY
  • x (float) — The x component of the force to apply
  • y (float) — The y component of the force to apply
  • z (float) — The z component of the force to apply
  • nComponent (int) — Component of the entity to apply the force too. Only matters for breakable or articulated (ragdoll) physics. 0 means the root or parent component
  • bLocalForce (BOOL) — Specifies whether the force vector passed in is in local or world coordinates. true means the force will get automatically transformed into world space before being applied
  • bScaleByMass (BOOL) — Specifies whether to scale the force by mass
  • bApplyToChildren (BOOL) — Default false. If the force should be applied to any attached children
Back to ENTITY