Garry's Mod Wiki

undo.Create

undo.Create( string name )

Description

Begins a new undo entry

Arguments

1 string name
Name of the undo message to show to players

Example

This example creates a prop_physics, and adds it to Player's undo list.

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.Finish()

Page Links


Special Pages


Wikis

?

Render Time: 29ms

DB GetPage 5
Generate Html 2
SaveChanges (1) 8
Render Body 0
Render Sidebar 11