Difference between revisions of "0959"

From GTAMods Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
<code>0959=4,%1d% %2d% %3d% %4d%</code><br>
+
{{OpCode
'''Description''': Creates a horseshoe pickup<br>
+
| ini        = 0959=4,%4d% %1d% %2d% %3d%
'''Parameter 1''': X-coordinate<br>
+
| description = Creates a horseshoe pickup
'''Parameter 2''': Y-coordinate<br>
+
| p1          = X-coordinate
'''Parameter 3''': Z-coordinate<br>
+
| p2          = Y-coordinate
'''Parameter 4''': Object handle<br>
+
| p3          = Z-coordinate
'''Supports''': San Andreas<br>
+
| p4          = Object handle
 
+
| game        = [[San Andreas]]
This creates a horseshoe pickup. You can walk into it to pick it up like any other pickups. The 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 $10000. The game will only create the horseshoe model with ID 954.
+
}}
 +
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==
 
==Note==
Sometimes this opcode is written as this:<br>
+
The above format is more commonly used. The actual format of this opcode is in order:<br>
<code>0959=4,%4d% %1d% %2d% %3d%</code><br>
+
<code>0959=4,%1d% %2d% %3d% %4d%</code><br>
The fourth parameter is placed in the beginning instead of at the end. This depends on which sascm.ini file you use.<br>
+
The format to use depends on which INI file you use.
[[Sanny Builder]] by default:
 
<code>0959: $2882 = create_horseshoe_at 1224.0 2617.0 11.0</code>
 
  
 
==Keywords==
 
==Keywords==
create, horseshoe, pickup
+
create, horseshoe, pickup, cj_horse_shoe
 
 
[[Category:OpCodes]]
 

Revision as of 22:02, 31 January 2010

{{{games}}}


Description
Creates a horseshoe pickup
Syntax
{{{syntax1}}}
Parameter

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:

0959: $2882 = create_horseshoe_at 1224.0 2617.0 11.0

Note

The above format is more commonly used. The actual format of this opcode is in order:
0959=4,%1d% %2d% %3d% %4d%
The format to use depends on which INI file you use.

Keywords

create, horseshoe, pickup, cj_horse_shoe