GetWeaponFlags: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client function}} Gets the flags of the custom weapon (used to determine what to hit) ==Syntax== <syntaxhighlight lang="lua">value getWeaponFlags ( theWeapon, string theFlag )</syntaxhighlight>...") |
Cazomino05 (talk | contribs) No edit summary |
||
Line 30: | Line 30: | ||
==See Also== | ==See Also== | ||
{{Client weapon functions}} | {{Client weapon creation functions}} |
Revision as of 10:46, 26 August 2012
Gets the flags of the custom weapon (used to determine what to hit)
Syntax
value getWeaponFlags ( theWeapon, string theFlag )
Required Arguments
- theWeapon: The weapon to set the flag of.
- theFlag: The weapon flag to get:
- bool disable_model disable the weapon model of the weapon
- flags edit the processLineOfSight flags used to find the hit position
- bool checkBuildings
- bool checkCarTires
- bool checkDummies
- bool checkObjects
- bool checkPeds
- bool checkVehicles
- bool checkSeeThroughStuff
- bool checkShootThroughStuff
- bool instant_reload reload the weapon instantly rather than doing a reload
- bool shoot_if_out_of_range shoot the target position if out of weapon range
- bool shoot_if_blocked shoot the target position if blocked
Returns
Returns the value(s) on success (flags have 8 values), false otherwise.
Requirements
This template will be deleted.
See Also
- createWeapon
- fireWeapon
- getWeaponAmmo
- getWeaponClipAmmo
- getWeaponFiringRate
- getWeaponFlags
- getWeaponOwner
- getWeaponProperty
- getWeaponState
- getWeaponTarget
- resetWeaponFiringRate
- setWeaponAmmo
- setWeaponClipAmmo
- setWeaponFiringRate
- setWeaponFlags
- setWeaponProperty
- setWeaponState
- setWeaponTarget