CreateWeapon: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Undo revision 34878 by Prestege Stop trashing the wiki.) |
||
Line 18: | Line 18: | ||
===Returns=== | ===Returns=== | ||
Returns a custom weapon element type and creates a simulated weapon at that position. | Returns a custom weapon element type and creates a simulated weapon at that position. | ||
==Requirements== | ==Requirements== |
Revision as of 11:09, 14 February 2013
This article needs checking. | |
Reason(s): "Some weapon types do not work."... needs investigating. Shotguns do not work because the pellet code was complex and its actually 8 very clustered pellets. All other bullet weapons should work and be synced. Exact weapons this works with needs documenting still. |
Creates a custom weapon that can fire bullets not related to player held weapons. Note: Some weapon types do not work.
Syntax
weapon createWeapon ( string theType, float x, float y, float z )
Required Arguments
- theType: The weapon type which can be:
- colt 45
- silenced
- deagle
- uzi
- mp5
- ak-47
- m4
- tec-9
- rifle
- sniper
- minigun
Other weapons can be used but they can't fire. Use createProjectile for projectile based weapons.
- 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.