Player.DoReloadEvent

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player.DoReloadEvent( )
Description:
Sends a reload animation event to a player.
Returns: nil
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.DoReloadEvent]Player.DoReloadEvent [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionForces the player to play a third-person reloading animation when the player fires the scripted weapon.
Used onNewerServer.png
Code
function SWEP:PrimaryAttack()
 
	self.Owner:DoReloadEvent()
 
end
OutputWhen the player fires the weapon, the third-person player model plays the default reloading animation.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox