Участник
Пользователь
iPlague
♿️
- Сообщения
- 230
- Реакции
- 130
- Помог
- 2 раз(а)
Здравствуйте! Нужно в RG_CWeaponBox_SetModel получить id владельца оружия, нашёл на оленях такой способ:
new id = entity_get_edict(iWeaponBox, EV_ENT_owner); // Engine
Есть ли аналог в reapi? Не смог найти
new id = entity_get_edict(iWeaponBox, EV_ENT_owner); // Engine
Есть ли аналог в reapi? Не смог найти
enum CWeaponBox_Members
{
/*
* Description: -
* Member type: class CBasePlayerItem *[MAX_ITEM_TYPES]
* Get params: get_member(index, member, element);
* Set params: set_member(index, member, value, element);
*/
m_WeaponBox_rgpPlayerItems = BEGIN_MEMBER_REGION(weaponbox),
/*
* Description: -
* Member type: string_t [MAX_AMMO_SLOTS]
* Get params: get_member(index, member, dest[], const lenght, element);
* Set params: set_member(index, member, const source[], element);
*/
m_WeaponBox_rgiszAmmo,
/*
* Description: -
* Member type: int [MAX_AMMO_SLOTS]
* Get params: get_member(index, member, element);
* Set params: set_member(index, member, value, element);
*/
m_WeaponBox_rgAmmo,
/*
* Description: -
* Member type: int
* Get params: get_member(index, member);
* Set params: set_member(index, member, value);
*/
m_WeaponBox_cAmmoTypes,
/*
* Description: -
* Member type: bool
* Get params: get_member(index, member);
* Set params: set_member(index, member, bool:value);
*/
m_WeaponBox_bIsBomb,
};
{
/*
* Description: -
* Member type: class CBasePlayerItem *[MAX_ITEM_TYPES]
* Get params: get_member(index, member, element);
* Set params: set_member(index, member, value, element);
*/
m_WeaponBox_rgpPlayerItems = BEGIN_MEMBER_REGION(weaponbox),
/*
* Description: -
* Member type: string_t [MAX_AMMO_SLOTS]
* Get params: get_member(index, member, dest[], const lenght, element);
* Set params: set_member(index, member, const source[], element);
*/
m_WeaponBox_rgiszAmmo,
/*
* Description: -
* Member type: int [MAX_AMMO_SLOTS]
* Get params: get_member(index, member, element);
* Set params: set_member(index, member, value, element);
*/
m_WeaponBox_rgAmmo,
/*
* Description: -
* Member type: int
* Get params: get_member(index, member);
* Set params: set_member(index, member, value);
*/
m_WeaponBox_cAmmoTypes,
/*
* Description: -
* Member type: bool
* Get params: get_member(index, member);
* Set params: set_member(index, member, bool:value);
*/
m_WeaponBox_bIsBomb,
};
Последнее редактирование: