SetPickupType: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[Category:Incomplete]]
[[Category:Incomplete]]
[[Category:Needs Checking]] 
'''This is a pretty useless function if we cant set the data for the pickup.
It should be:
int getPickupType ( pickup, amount/weapon, [ammo] )
There is no point in setting a pickup into a Weapon, for example, if you cant set what weapon you want or the ammo.'''
--[[User:Talidan2|Talidan2]] 14:53, 12 August 2006 (CDT)


__NOTOC__  
__NOTOC__  

Revision as of 19:53, 12 August 2006


This is a pretty useless function if we cant set the data for the pickup. It should be: int getPickupType ( pickup, amount/weapon, [ammo] ) There is no point in setting a pickup into a Weapon, for example, if you cant set what weapon you want or the ammo. --Talidan2 14:53, 12 August 2006 (CDT)


VALUES: 0 - health 1 - armor 2 - weapon

Syntax

int getPickupType ( pickup pickup )          

Required Arguments

  • argumentName: description

Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.

  • argumentName2: descriptiona
  • argumentName3: description

Returns

Returns true if blah, false otherwise.

Example

This example does...

--This line does...
blabhalbalhb --abababa
--This line does this...
mooo

See Also

Template:FunctionArea Functions