rg_create_weaponbox
native rg_create_weaponbox(const pItem, const pPlayerOwner, const modelName[], Float:origin[3], Float:angles[3], Float:velocity[3], Float:lifeTime, bool:packAmmo);
| Parameter |
Description |
| pItem | Weapon entity index to attach |
| pPlayerOwner | Player index to remove pItem entity (0 = no weapon owner) |
| modelName | Model name ("models/w_*.mdl") |
| origin | Weaponbox origin position |
| angles | Weaponbox angles |
| velocity | Weaponbox initial velocity vector |
| lifeTime | Time to stay in world (< 0.0 = use mp_item_staytime cvar value) |
| packAmmo | Set if ammo should be removed from weapon owner |
Spawn a weaponbox entity with its properties
Weaponbox ent index on success, AMX_NULLENT (-1) otherwise