Garry's Mod Wiki

Garry's Mod Wiki

  CTakeDamageInfo:SetAmmoType( number ammoType )

Description

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

Arguments

1 number ammoType
Ammo type ID

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' ) )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...