Difference between revisions of "GetPlayerCurrentAmmoRounds"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>WarMachineDD7
imported>WarMachineDD7
Line 1: Line 1:
{{Function
{{Function
  |origin = NVSE
  |origin = NVSE
  |summary = Returns the ammo of a weapon
  |summary = Returns the current number of rounds in the clip of the player.
  |name = GetPlayerCurrentAmmoRounds
  |name = GetPlayerCurrentAmmoRounds
  |returnType = int
  |returnType = int
  |referenceType = ref
  |referenceType = ref
  |arguments =  
  |arguments =  
|example = int currentAmmo
set currentAmmo to GetPlayerCurrentAmmoRounds
}}
}}
[[Category:Functions_(NVSE)]]
[[Category:Functions_(NVSE)]]

Revision as of 04:45, 1 February 2013

< [[::Category:Functions|Category:Functions]]

A function added by the New Vegas Script Extender.

Description

Returns the current number of rounds in the clip of the player.

Syntax

[help]
(int) ref.GetPlayerCurrentAmmoRounds

Example

int currentAmmo
set currentAmmo to GetPlayerCurrentAmmoRounds