GuiInterface.playEffect
Plays an effect at a widget
Kind: Function
Environments: Game
Game
guiInterface:playEffect( widgetName, effectName, restart, useHistory )
Availability: Client only
Parameters:
| Name | Type | Description |
|---|---|---|
gui |
GuiInterface | The Gui interface |
widgetName |
string | The name of the widget |
effectName |
string | The name of the effect |
restart (optional) |
boolean | If the effect should restart if its already playing (Defaults to true) |
useHistory (optional) |
boolean | If the effect should use call history (Defaults to false) |