IsWeaponRenderEnabled
Jump to navigation
Jump to search
Syntax
bool isWeaponRenderEnabled ( )
Returns
Returns true if weapon rendering is enabled, otherwise returns false.
Example
This example allows you to disable/enable weapon rendering by using /weaponrender command.
function toggleWeaponRender() local weaponRenderEnabled = isWeaponRenderEnabled() local weaponRenderNewState = (not weaponRenderEnabled) setWeaponRenderEnabled(weaponRenderNewState) end addCommandHandler("weaponrender", toggleWeaponRender)
See Also
- Shared
- getWeaponProperty
- getPickupWeapon
- getOriginalWeaponProperty
- getSlotFromWeapon
- getWeaponIDFromName
- getWeaponNameFromID
- setWeaponAmmo
- setWeaponProperty