Difference between revisions of "02E1"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "thumb|02E1 pickup in Vice City {{Icon|t}} '''CREATE_MONEY_PICKUP''' <hr /> '''Description''' : Creates a money pickup '''Syntax''' : 02E1: [''var''] = cr...")
 
m
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
[[File:02E1.png|thumb|02E1 pickup in Vice City]]
 
[[File:02E1.png|thumb|02E1 pickup in Vice City]]
{{Icon|t}} '''CREATE_MONEY_PICKUP'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = CREATE_<wbr>MONEY_<wbr>PICKUP
: Creates a money [[pickup]]
+
| description = Creates a money [[pickup]]
'''Syntax'''
+
| syntax1    = 02E1: [''var''] = create_cash_pickup [''int''] at [''flt1''] [''flt2''] [''flt3'']
: 02E1: [''var''] = create_cash_pickup [''int''] at [''flt1''] [''flt2''] [''flt3'']
+
| p1t        = [''int'']
'''Parameter'''
+
| p1d        = Money
: [''var'']
+
| p2t        = [''flt1'']
:: Variable to store the handle of the pickup
+
| p2d        = X-coordinate
: [''int'']
+
| p3t        = [''flt2'']
:: Money
+
| p3d        = Y-coordinate
: [''flt1'']
+
| p4t        = [''flt3'']
:: X-coordinate
+
| p4d        = Z-coordinate (or &le;''-100.0'' for [[02CE|ground z]] + 0.5 units)
: [''flt2'']
+
| p5t        = [''var'']
:: Y-coordinate
+
| p5d        = Variable to store the handle of the pickup
: [''flt3'']
+
}}
:: Z-coordinate (or ''-100.0'' for [[02CE|ground z]] + 0.5 units)
 
  
This opcode creates a [[0213#GTA III|type 7]] money pickup in GTA III and a [[0213#Vice City|type 8]] money pickup in Vice City. It uses the <code>money</code> [[DFF]] model. When it is picked up, the player is given the set amount of money. This opcode is almost equivalent to opcode [[032B]] but with preset parameters. The money pickup type in general can only be picked up once and disappears in 30 seconds after its creation if it is not picked up.
+
This opcode creates a pickup of [[0213#Pickup types|type PICKUP_MONEY]] (type 7 in GTA III, type 8 in Vice City and San Andreas) at the coordinates point. It uses a model that [[MatchModelString|matches the name <code>money</code>]]. When it is picked up, the player is given the set amount of money. This opcode is almost equivalent to opcode [[032B]] but with preset parameters. The money pickup type in general can only be picked up once and disappears in 30 seconds after its creation if it is not picked up.
  
 
== Keywords ==
 
== Keywords ==
 
create, cash, money, pickup
 
create, cash, money, pickup
 
[[Category:OpCodes]]
 

Latest revision as of 23:47, 26 December 2016

02E1 pickup in Vice City

GTA III Vice City San Andreas CREATE_MONEY_PICKUP


Description
Creates a money pickup
Syntax
02E1: [var] = create_cash_pickup [int] at [flt1] [flt2] [flt3]
Parameter
[int]
Money
[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
Z-coordinate (or ≤-100.0 for ground z + 0.5 units)
[var]
Variable to store the handle of the pickup

This opcode creates a pickup of type PICKUP_MONEY (type 7 in GTA III, type 8 in Vice City and San Andreas) at the coordinates point. It uses a model that matches the name money. When it is picked up, the player is given the set amount of money. This opcode is almost equivalent to opcode 032B but with preset parameters. The money pickup type in general can only be picked up once and disappears in 30 seconds after its creation if it is not picked up.

Keywords

create, cash, money, pickup