CreateWeapon: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Let users see the weapon names) |
||
Line 8: | Line 8: | ||
===Required Arguments=== | ===Required Arguments=== | ||
* '''theType:''' The weapon type | * '''theType:''' The weapon type which can be: | ||
{{Custom Weapon Types}} | |||
* '''x:''' The x position to create the weapon. | * '''x:''' The x position to create the weapon. | ||
* '''y:''' The y position to create the weapon. | * '''y:''' The y position to create the weapon. |
Revision as of 15:42, 23 September 2012
Creates a custom weapon that can fire bullets not related to player held weapons. Note: All weapon types does 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.