User Tools

Site Tools


eliteapi:functions:entity:setmain

SetMain

Sets the entities main weapon.

ELITEAPI_API bool __stdcall SetMain(void* apiObject, int index, unsigned short mainId);

Parameters

  • apiObject [in]
    • A handle to an EliteAPI object.
  • index [in]
    • The index of the entity to obtain.
  • mainId [in]
    • The main weapon model id to set the entity to.

Return Value

True on success, false otherwise.

eliteapi/functions/entity/setmain.txt · Last modified: 2014/12/08 02:28 (external edit)