Difference between revisions of "0959"

From GTAMods Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 0959=4,%4d% %1d% %2d% %3d%
+
| games      = {{Icon|SA}}
| description = Creates a horseshoe pickup
+
| command    = CREATE_HORSESHOE_PICKUP
| p1          = X-coordinate
+
| description = Creates a horseshoe [[pickup]]
| p2          = Y-coordinate
+
| syntax1    = 0959: [''var''] = create_horseshoe_at [''flt1''] [''flt2''] [''flt3'']
| p3          = Z-coordinate
+
| p1t        = [''var'']
| p4          = Object handle
+
| p1d        = Variable to store the handle of the pickup
| game        = [[San Andreas]]
+
| p2t        = [''flt1'']
 +
| p2d        = X-coordinate
 +
| p3t        = [''flt2'']
 +
| p3d        = Y-coordinate
 +
| p4t        = [''flt3'']
 +
| p4d        = Z-coordinate
 
}}
 
}}
This creates a horseshoe pickup. Like most pickups, it spins and can be "picked up" by walking through it. Horseshoes are recorded in stat 241. The total amount of horseshoes depends on the amount of pickups you have placed. Picking up a horseshoe gives you $100. Picking up all the horseshoes will give you $10,000. The pickup uses the model cj_horse_shoe.dff to create the pickup so the model has to be at least defined somewhere in an [[IDE]] file for the opcode to work. Note that the fourth parameter is placed in the beginning instead of at the end.
 
[[Sanny Builder]] example:<source lang="scm">0959: $2882 = create_horseshoe_at 1224.0 2617.0 11.0</source>
 
  
==Note==
+
This opcode creates a horseshoe pickup. Like most pickups, it spins and can be "picked up" by walking through it. Horseshoes are recorded in stat 241. The total amount of horseshoes depends on the amount of pickups you have placed. Picking up a horseshoe gives you $100. Picking up all the horseshoes will give you $10,000. The pickup uses the model cj_horse_shoe.dff to create the pickup so the model has to be at least defined somewhere in an [[IDE]] file for the opcode to work.
The above format is more commonly used. The actual format of this opcode is in order:<br>
 
<code>0959=4,%1d% %2d% %3d% %4d%</code><br>
 
The format to use depends on which INI file you use.
 
  
==Keywords==
+
== Keywords ==
 
create, horseshoe, pickup, cj_horse_shoe
 
create, horseshoe, pickup, cj_horse_shoe

Revision as of 18:38, 9 June 2016

San Andreas CREATE_HORSESHOE_PICKUP


Description
Creates a horseshoe pickup
Syntax
0959: [var] = create_horseshoe_at [flt1] [flt2] [flt3]
Parameter
[var]
Variable to store the handle of the pickup
[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
Z-coordinate

This opcode creates a horseshoe pickup. Like most pickups, it spins and can be "picked up" by walking through it. Horseshoes are recorded in stat 241. The total amount of horseshoes depends on the amount of pickups you have placed. Picking up a horseshoe gives you $100. Picking up all the horseshoes will give you $10,000. The pickup uses the model cj_horse_shoe.dff to create the pickup so the model has to be at least defined somewhere in an IDE file for the opcode to work.

Keywords

create, horseshoe, pickup, cj_horse_shoe