Difference between revisions of "0518"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "thumb|0518 pickup in Vice City {{Icon|VC}} {{Icon|SA}} '''CREATE_<wbr>FORSALE_<wbr>PROPERTY_<wbr>PICKUP''' <hr /> '''Description''' : Creates a forsale prope...")
 
Line 1: Line 1:
 
[[File:0518.png|thumb|0518 pickup in Vice City]]
 
[[File:0518.png|thumb|0518 pickup in Vice City]]
{{Icon|VC}} {{Icon|SA}} '''CREATE_<wbr>FORSALE_<wbr>PROPERTY_<wbr>PICKUP'''
+
{{OpCode
<hr />
+
| games      = {{Icon|VC}} {{Icon|SA}}
'''Description'''
+
| command    = CREATE_<wbr>FORSALE_<wbr>PROPERTY_<wbr>PICKUP
: Creates a forsale property [[pickup]]
+
| description = Creates a forsale property [[pickup]]
'''Syntax'''
+
| syntax1    = 0518: [''var''] = create_available_asset_pickup '[''string'']' at [''flt1''] [''flt2''] [''flt3''] price [''int'']
: 0518: [''var''] = create_available_asset_pickup '[''string'']' at [''flt1''] [''flt2''] [''flt3''] price [''int'']
+
| p1t        = [''var'']
'''Parameter'''
+
| p1d        = Variable to store the handle of the pickup
: [''var'']
+
| p2t        = [''string'']
:: Variable to store the handle of the pickup
+
| p2d        = [[GXT]] key
: [''string'']
+
| p3t        = [''flt1'']
:: [[GXT]] string
+
| p3d        = X-coordinate
: [''flt1'']
+
| p4t        = [''flt2'']
:: X-coordinate
+
| p4d        = Y-coordinate
: [''flt2'']
+
| p5t        = [''flt3'']
:: Y-coordinate
+
| p5d        = Z-coordinate (or &le;''-100.0'' for [[02CE|ground z]] + 0.5 units)
: [''flt3'']
+
| p6t        = [''int'']
:: Z-coordinate (or ''-100.0'' for [[02CE|ground z]] + 0.5 units)
+
| p6d        = Price of property
: [''int'']
+
}}
:: Price of property
 
  
This opcode creates a [[0213#Pickup types|type 18]] forsale property pickup. It uses the <code> property_fsale</code> [[DFF]] model. Walking over the pickup displays a [[03E5|help message]] using the set GXT string. You can interact with it by pressing the [[00E1|Action]] button. If you have enough money and the [[0180|mission flag]] is not set, money is subtracted from you and the pickup is picked up. If you do not have enough money, GXT string <code>PROP_1</code> is displayed as the help message. If the mission flag is set, GXT string <code>PROP_2</code> is displayed.
+
This opcode creates a [[0213#Vice City|type 18]] forsale property pickup. It uses the <code>property_fsale</code> [[DFF]] model. Walking over the pickup displays a [[Text#Help message|help message]] using the set GXT key. You can interact with it by pressing the [[00E1|Action]] button. If you have enough money and the [[0180|mission flag]] is not set, money is subtracted from you and the pickup is picked up. If you do not have enough money, a help message with GXT key <code>PROP_1</code> ("You don't have enough cash for this property") is displayed. If the mission flag is set, a help message with GXT key <code>PROP_2</code> ("You cannot buy property whilst on a mission") is displayed.
  
 
== Keywords ==
 
== Keywords ==
 
create, for, sale, forsale, property, available, asset, pickup
 
create, for, sale, forsale, property, available, asset, pickup
 
[[Category:OpCodes]]
 

Revision as of 17:45, 29 February 2016

0518 pickup in Vice City

Vice City San Andreas CREATE_FORSALE_PROPERTY_PICKUP


Description
Creates a forsale property pickup
Syntax
0518: [var] = create_available_asset_pickup '[string]' at [flt1] [flt2] [flt3] price [int]
Parameter
[var]
Variable to store the handle of the pickup
[string]
GXT key
[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
Z-coordinate (or ≤-100.0 for ground z + 0.5 units)
[int]
Price of property

This opcode creates a type 18 forsale property pickup. It uses the property_fsale DFF model. Walking over the pickup displays a help message using the set GXT key. You can interact with it by pressing the Action button. If you have enough money and the mission flag is not set, money is subtracted from you and the pickup is picked up. If you do not have enough money, a help message with GXT key PROP_1 ("You don't have enough cash for this property") is displayed. If the mission flag is set, a help message with GXT key PROP_2 ("You cannot buy property whilst on a mission") is displayed.

Keywords

create, for, sale, forsale, property, available, asset, pickup