Difference between revisions of "04A6"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
Line 1: Line 1:
 
[[File:04A6.png|thumb|04A6 pickup in Vice City]]
 
[[File:04A6.png|thumb|04A6 pickup in Vice City]]
{{Icon|VC}} {{Icon|SA}} '''CREATE_<wbr>PROTECTION_<wbr>PICKUP'''
+
{{OpCode
<hr />
+
| games      = {{Icon|VC}} {{Icon|SA}}
'''Description'''
+
| command    = CREATE_<wbr>PROTECTION_<wbr>PICKUP
: Creates an asset revenue [[pickup]]
+
| description = Creates an asset revenue [[pickup]]
'''Syntax'''
+
| syntax1    = 04A6: [''var''] = create_asset_money_pickup_at [''flt1''] [''flt2''] [''flt3''] money [''int1''] rate [''int2'']
: 04A6: [''var''] = create_asset_money_pickup_at [''flt1''] [''flt2''] [''flt3''] money [''int1''] rate [''int2'']
+
| p1t        = [''flt1'']
'''Parameter'''
+
| p1d        = X-coordinate
: [''flt1'']
+
| p2t        = [''flt2'']
:: X-coordinate
+
| p2d        = Y-coordinate
: [''flt2'']
+
| p3t        = [''flt3'']
:: Y-coordinate
+
| p3d        = Z-coordinate (or &le;''-100.0'' for [[02CE|ground z]] + 0.5 units)
: [''flt3'']
+
| p4t        = [''int1'']
:: Z-coordinate (or ''-100.0'' for [[02CE|ground z]] + 0.5 units)
+
| p4d        = Revenue limit
: [''int1'']
+
| p5t        = [''int2'']
:: Revenue limit
+
| p5d        = Revenue rate
: [''int2'']
+
| p6t        = [''var'']
:: Revenue rate
+
| p6d        = Variable to store the handle of the pickup
: [''var'']
+
}}
:: Variable to store the handle of the pickup
 
  
This opcode creates a [[0213#Pickup types|type 16]] asset revenue pickup. It uses the <code>bigdollar</code> [[DFF]] model. Unlike other pickups, pickups of this type do not disappear when the player character walks over them. Money, which is displayed above the pickup, rises up to the set revenue limit and can be collected by walking through the pickup. The larger the revenue rate value, the faster the money rises. The pickup does not allow collection or display a value if there is less than $10 revenue. The money pauses from rising if the player character is within 10 units of the pickup. This pickup is generally used for businesses involved in protection rackets.
+
This opcode creates a [[0213#Pickup types|type 16]] asset revenue pickup. It uses a model that [[MatchModelString|matches the name <code>bigdollar</code>]]. Unlike other pickups, pickups of this type do not disappear when the player character walks over them. Money, which is displayed above the pickup, rises up to the set revenue limit and can be collected by walking through the pickup. The larger the revenue rate value, the faster the money rises. The pickup does not allow collection or display a value if there is less than $10 revenue. The money pauses from rising if the player character is within 10 units of the pickup. This pickup is generally used for businesses involved in protection rackets.
  
 
== Keywords ==
 
== Keywords ==
 
create, protection, asset, money, cash, revenue, pickup
 
create, protection, asset, money, cash, revenue, pickup
 
[[Category:OpCodes]]
 

Latest revision as of 16:07, 2 December 2016

04A6 pickup in Vice City

Vice City San Andreas CREATE_PROTECTION_PICKUP


Description
Creates an asset revenue pickup
Syntax
04A6: [var] = create_asset_money_pickup_at [flt1] [flt2] [flt3] money [int1] rate [int2]
Parameter
[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
Z-coordinate (or ≤-100.0 for ground z + 0.5 units)
[int1]
Revenue limit
[int2]
Revenue rate
[var]
Variable to store the handle of the pickup

This opcode creates a type 16 asset revenue pickup. It uses a model that matches the name bigdollar. Unlike other pickups, pickups of this type do not disappear when the player character walks over them. Money, which is displayed above the pickup, rises up to the set revenue limit and can be collected by walking through the pickup. The larger the revenue rate value, the faster the money rises. The pickup does not allow collection or display a value if there is less than $10 revenue. The money pauses from rising if the player character is within 10 units of the pickup. This pickup is generally used for businesses involved in protection rackets.

Keywords

create, protection, asset, money, cash, revenue, pickup