|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.
weapon createWeapon ( string theType, float x, float y, float z )
- theType: The weapon type which can be:
- 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 a custom weapon element type and creates a simulated weapon at that position.
|Minimum supported server||n/a|
|Minimum supported client||1.3.0-9.04555|
Note: Using this function requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.3.0-9.04555" />