AMX Mod X API Documentation

Signature
native entity_set_origin(iIndex, const Float:fNewOrigin[3]);
Description

Sets the origin of an entity.

Notes
  • This native uses engine functions to set the origin, keeping it

    properly updated with the game. Directly writing to EV_VEC_origin is an

    error and will cause problems.

Parameters
  • iIndex Entity index
  • fNewOrigin New origin
No return value
Errors
  • If an invalid entity index is provided, an error will be

    thrown.

Назад
Верх