CreateWeapon: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 4: Line 4:


==Syntax==
==Syntax==
<syntaxhighlight lang="lua">weapon createWeapon ( string type, float x, float y, float z )</syntaxhighlight>
<syntaxhighlight lang="lua">weapon createWeapon ( string theType, float x, float y, float z )</syntaxhighlight>


===Required Arguments===
===Required Arguments===
* '''type:''' The weapon type such as M4.
* '''theType:''' The weapon type such as M4.
* '''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 11:46, 26 August 2012

Creates a custom weapon that can fire bullets not related to player held weapons.

Syntax

weapon createWeapon ( string theType, float x, float y, float z )

Required Arguments

  • theType: 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