Difference between revisions of "0958"

From GTAMods Wiki
Jump to navigation Jump to search
 
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<code>0958=4,%1d% %2d% %3d% %4d%</code><br>
+
{{Icon|SA}} '''CREATE_SNAPSHOT_PICKUP'''
'''Description''': Creates a photo pickup<br>
+
<hr />
'''Parameter 1''': X-coordinate<br>
+
'''Description'''
'''Parameter 2''': Y-coordinate<br>
+
: Creates a photo pickup
'''Parameter 3''': Z-coordinate<br>
+
'''Syntax'''
'''Parameter 4''': Object handle<br>
+
: 0958: [''var''] = create_photo_at [''flt1''] [''flt2''] [''flt3'']
'''Supports''': San Andreas<br>
+
'''Parameter'''
 +
: [''flt1'']
 +
:: X-coordinate
 +
: [''flt2'']
 +
:: Y-coordinate
 +
: [''flt3'']
 +
:: Z-coordinate
 +
: [''var'']
 +
:: Variable to store the handle of the pickup
  
==Note==
+
This creates a photo op pickup. The pickup can only be seen through a camera and it glows at night time without the camera. The only way to "pick" this up is to take a picture of it with a camera. The pickup will disappear after that and it gets recorded in stat 231. The total amount of snapshots taken depends on the amount of pickups you have placed. Taking a photo of one pickup gives you $100. Taking a photo of all the pickups will give you $10000. You can only take a picture of one pickup at a time. If the pickups are too close to each other, it will take the closest one.
Sometimes this opcode is written as this:<br>
 
<code>0958=4,%4d% %1d% %2d% %3d%</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>
 
[[Mission_Scripting_%28Overview%29#Sanny_Builder|Sanny Builder]] by default:
 
<code>0958: $2932 = create_photo_at -2511.28 -672.99 195.75</code>
 
  
==Keywords==
+
== Keywords ==
create, photo, op, pickup
+
create, photo, op, snapshot, pickup
  
 
[[Category:OpCodes]]
 
[[Category:OpCodes]]

Latest revision as of 00:53, 20 November 2016

San Andreas CREATE_SNAPSHOT_PICKUP


Description

Creates a photo pickup

Syntax

0958: [var] = create_photo_at [flt1] [flt2] [flt3]

Parameter

[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
Z-coordinate
[var]
Variable to store the handle of the pickup

This creates a photo op pickup. The pickup can only be seen through a camera and it glows at night time without the camera. The only way to "pick" this up is to take a picture of it with a camera. The pickup will disappear after that and it gets recorded in stat 231. The total amount of snapshots taken depends on the amount of pickups you have placed. Taking a photo of one pickup gives you $100. Taking a photo of all the pickups will give you $10000. You can only take a picture of one pickup at a time. If the pickups are too close to each other, it will take the closest one.

Keywords

create, photo, op, snapshot, pickup