Difference between revisions of "0518"
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...") |
m |
||
(2 intermediate revisions by 2 users not shown) | |||
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}} | + | {{OpCode |
− | + | | games = {{Icon|VC}} {{Icon|SA}} | |
− | + | | command = CREATE_<wbr>FORSALE_<wbr>PROPERTY_<wbr>PICKUP | |
− | + | | description = Creates a forsale property [[pickup]] | |
− | + | | syntax1 = 0518: [''var''] = create_available_asset_pickup '[''string'']' at [''flt1''] [''flt2''] [''flt3''] price [''int''] | |
− | + | | p1t = [''string''] | |
− | + | | p1d = [[GXT]] key | |
− | + | | p2t = [''flt1''] | |
− | + | | p2d = X-coordinate | |
− | + | | p3t = [''flt2''] | |
− | + | | p3d = Y-coordinate | |
− | + | | p4t = [''flt3''] | |
− | + | | p4d = Z-coordinate (or ≤''-100.0'' for [[02CE|ground z]] + 0.5 units) | |
− | + | | p5t = [''int''] | |
− | + | | p5d = Price of property | |
− | + | | p6t = [''var''] | |
− | + | | p6d = Variable to store the handle of the pickup | |
− | + | }} | |
− | |||
− | This opcode creates a [[0213# | + | This opcode creates a [[0213#Vice City|type 18]] forsale property pickup. It uses a model that [[MatchModelString|matches the name <code>property_fsale</code>]]. Walking over the pickup displays a [[Text#Help message|help message]] using the set GXT key. You can interact with it by pressing [[00E1|button 4]] (ACTION key) while on foot. 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 | ||
− | |||
− |
Latest revision as of 16:12, 2 December 2016
CREATE_
- Description
- Creates a forsale property pickup
- Syntax
- 0518: [var] = create_available_asset_pickup '[string]' at [flt1] [flt2] [flt3] price [int]
- Parameter
This opcode creates a type 18 forsale property pickup. It uses a model that matches the name property_fsale
. Walking over the pickup displays a help message using the set GXT key. You can interact with it by pressing button 4 (ACTION key) while on foot. 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