undo.SetCustomUndoText

From GMod Wiki

Jump to: navigation, search
Function
Syntax undo.SetCustomUndoText( String Text )
Where is this used?
Description:
Sets custom text for the undo notification.
Returns: nil
Part of Library: Undo
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Undo.SetCustomUndoText]Undo.SetCustomUndoText [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis example creates a prop_physics, and adds it to the players undo list.
Used onNewerServer.png
Code
prop = ents.Create("prop_physics")
prop:SetModel("models/props_junk/wood_crate001a.mdl")
prop:Spawn()
undo.Create("prop")
    undo.AddEntity(prop)
    undo.SetPlayer(Player)
    undo.SetCustomUndoText("Undone Useless Crate")
undo.Finish()
Output"Undone Useless Crate" instead of "Undone Prop"


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox