Garry's Mod Wiki

undo.Finish

undo.Finish()

Description

Completes an undo entry, and registers it with the player's client

Example

This example creates a prop_physics, and adds it to the players 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: 23ms

DB GetPage 4
Generate Html 0
SaveChanges (1) 8
Render Body 0
Render Sidebar 8