Gamemode.PlayerSpawnedEffect

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NamePlayerSpawnedEffect
SyntaxGM:PlayerSpawnedEffect( Player player, String model, Entity effect, )
DescriptionCalled when a player has spawned an effect
ReturnsNil
Lua StateNewerServer.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSpawnedEffect]Gamemode.PlayerSpawnedEffect [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]

Examples

DescriptionPrints the model of the effect to the player.
Used onNewerServer.png
Code
function EffectModel( pl, mdl, ent )
	pl:PrintMessage(HUD_PRINTTALK, "Effect Model: ".. mdl );
end
hook.Add("PlayerSpawnedEffect", "EffectModel", EffectModel);
OutputN/A

Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox