AMX Mod X API Documentation

Signature
native entity_set_model(iIndex, const szModel[]);
Description

Sets the model of an entity.

Notes
  • This native uses an engine function to set the model, keeping it

    properly updated with the game. Simply writing to EV_SZ_model is an

    error and will cause problems.

Parameters
  • iIndex Entity index
  • szModel Model to set
No return value
Errors
  • If an invalid entity index is provided, an error will be

    thrown.

Назад
Верх