GetWeaponTarget: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client function}} Get the target of the custom weapon. ==Syntax== <syntaxhighlight lang="lua">element getWeaponTarget ( theWeapon )</syntaxhighlight> ===Required Arguments=== * '''theWeapon:''...")
 
No edit summary
Line 4: Line 4:


==Syntax==
==Syntax==
<syntaxhighlight lang="lua">element getWeaponTarget ( theWeapon )</syntaxhighlight>
<syntaxhighlight lang="lua">element getWeaponTarget ( weapon theWeapon )</syntaxhighlight>


===Required Arguments===
===Required Arguments===

Revision as of 23:23, 8 September 2012

Get the target of the custom weapon.

Syntax

element getWeaponTarget ( weapon theWeapon )

Required Arguments

  • theWeapon: The weapon to get the target of.

Returns

Returns the target element of the custom weapon, false otherwise.

Requirements

Minimum server version 1.3.0-4555
Minimum client version 1.3.0-4555

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version server="1.3.0-4555" client="1.3.0-4555" />

See Also