CreateWeapon: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client function}} Creates a custom weapon that can fire bullets not related to player held weapons. ==Syntax== <syntaxhighlight lang="lua">weapon createWeapon ( string type, float x,...") |
Cazomino05 (talk | contribs) mNo edit summary |
||
Line 19: | Line 19: | ||
==See Also== | ==See Also== | ||
{{Client weapon functions}} | {{Client weapon creation functions}} |
Revision as of 10:44, 26 August 2012
Creates a custom weapon that can fire bullets not related to player held weapons.
Syntax
weapon createWeapon ( string type, float x, float y, float z )
Required Arguments
- type: The weapon type such as M4.
- x: The x position to create the weapon.
- y: The y position to create the weapon.
- z: The z position to create the weapon.
Returns
Returns a custom weapon element type and creates a simulated weapon at that position.
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