Difference between revisions of "04B8"

From GTAMods Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
<code>04B8=5,%1d% %2h% %3d% %4d% %5d%</code><br>
+
{{OpCode
'''Description''': Stores the weapons data from an actor<br>
+
| ini        = 04B8=5,%1d% %2h% %3d% %4d% %5d%
'''Parameter 1''': Actor handle<br>
+
| description = Stores the [[weapon]]s data from an actor
'''Parameter 2''': [[Weapon]] group<br>
+
| p1          = Actor handle
'''Parameter 3''': A variable to store the weapon number<br>
+
| p2          = Weapon group
'''Parameter 4''': A variable to store the weapon ammo<br>
+
| p3          = A variable to store the weapon number
'''Parameter 5''': A variable to store the weapon model<br>
+
| p4          = A variable to store the weapon ammo
'''Supports''': GTA3, Vice City, San Andreas<br>
+
| p5          = A variable to store the weapon model
 
+
| game        = [[Vice City]], [[San Andreas]]
 +
}}
 
This stores the weapon number, ammo, and model of the weapon in the weapon group of an actor. If there is no weapon for that weapon group, the weapon number returns 0 and the model returns -1.
 
This stores the weapon number, ammo, and model of the weapon in the weapon group of an actor. If there is no weapon for that weapon group, the weapon number returns 0 and the model returns -1.
  
 
==Keywords==
 
==Keywords==
 
store, get, weapon, number, model
 
store, get, weapon, number, model
 
[[Category:OpCodes]]
 

Revision as of 21:00, 17 August 2009

{{{games}}}


Description
Stores the weapons data from an actor
Syntax
{{{syntax1}}}
Parameter

This stores the weapon number, ammo, and model of the weapon in the weapon group of an actor. If there is no weapon for that weapon group, the weapon number returns 0 and the model returns -1.

Keywords

store, get, weapon, number, model