GetWeaponOwner

From Multi Theft Auto: Wiki
Revision as of 16:28, 23 December 2014 by AlexTMjugador (talk | contribs) (Added OOP syntax)
Jump to navigation Jump to search

Accessories-text-editor.png Script Example Missing Function GetWeaponOwner needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.

This function gets the owner of a custom weapon. Please refer to setWeaponOwner for details.

Syntax

player getWeaponOwner ( weapon theWeapon )

OOP Syntax Help! I don't understand this!

Method: weapon:getOwner(...)
Variable: .owner
Counterpart: setWeaponOwner


Required Arguments

  • theWeapon: The weapon to get the owner of.

Returns

Returns the player element of the custom weapon owner, false otherwise.

Example

--TODO

Requirements

This template will be deleted.

See also