CTakeDamageInfo/SetAmmoType

From Garry's Mod
Revision as of 02:50, 13 March 2016 by Mysterypancake1 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 CTakeDamageInfo:SetAmmoType( )

Contents

Description

Changes the ammo type used by the weapon that inflicted the damage.

Arguments

number ammoType

Ammo type ID

Examples

Example

Creates a new DamageInfo object and sets the ammo that caused the damage to AR2 ammo

local dmginfo = DamageInfo()

dmginfo:SetAmmoType( game.GetAmmoID( 'AR2' ) )


Personal tools
Navigation