Difference between revisions of "035B"

From GTAMods Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[File:035B.jpg|thumb|A Drop In The Ocean mission. A package is floating on water]]
 
[[File:035B.jpg|thumb|A Drop In The Ocean mission. A package is floating on water]]
{{Icon|3}} '''CREATE_FLOATING_PACKAGE'''
+
{{OpCode
<hr />
+
| games      = {{Icon|3}}
'''Description'''
+
| command    = CREATE_<wbr>FLOATING_<wbr>PACKAGE
: Creates a floating package
+
| description = Creates a floating package [[pickup]]
'''Syntax'''
+
| syntax1    = 035B: [''var''] = create_drop_off_package [''flt1''] [''flt2''] [''flt3'']
: 035B: [''var''] = create_drop_off_package [''flt1''] [''flt2''] [''flt3'']
+
| p1t        = [''flt1'']
'''Parameter'''
+
| p1d        = X-coordinate
: [''var'']
+
| p2t        = [''flt2'']
:: variable to store a pickup handle
+
| p2d        = Y-coordinate
: [''flt1'']
+
| p3t        = [''flt3'']
:: X-coordinate
+
| p3d        = Z-coordinate (or &le;''-100.0'' for [[02CE|ground z]] + 0.5 units)
: [''flt2'']
+
| p4t        = [''var'']
:: Y-coordinate
+
| p4d        = Variable to store the handle of the pickup
: [''flt3'']
+
}}
:: Z-coordinate
 
  
This opcode creates a new floating [[pickup]] at the given coordinates. The pickup has the following [[hardcoded]] properties: its model name is ''floatpackge1'' and its [[0213#Pickup types|type]] equals to 12. This opcode is only used during the 'A Drop In The Ocean' mission in GTA III.
+
This opcode creates a pickup of [[0213#Pickup types|type PICKUP_FLOATINGPACKAGE]] at the coordinates point and uses a model that [[MatchModelString|matches the name <code>floatpackge1</code>]]. This opcode is only used during the 'A Drop In The Ocean' mission in GTA III.
  
 
== Keywords ==
 
== Keywords ==
 
pickup, drop-off, floating, package
 
pickup, drop-off, floating, package
 
[[Category:OpCodes]]
 

Latest revision as of 05:17, 2 January 2017

A Drop In The Ocean mission. A package is floating on water

GTA III CREATE_FLOATING_PACKAGE


Description
Creates a floating package pickup
Syntax
035B: [var] = create_drop_off_package [flt1] [flt2] [flt3]
Parameter
[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_FLOATINGPACKAGE at the coordinates point and uses a model that matches the name floatpackge1. This opcode is only used during the 'A Drop In The Ocean' mission in GTA III.

Keywords

pickup, drop-off, floating, package