undo.Do_Undo

From Garry's Mod
Jump to: navigation, search
 undo.Do_Undo( )

Contents

Description

Processes an undo block (in table form). This is used internally by the undo manager when a player presses Z.

Arguments

table tab

The undo block to process as an Undo structure

Returns

number

Number of removed entities

Examples

Example

This example removes two entities, and informs player 1 that they just "Undone Prop!"

local tab = {}
tab.Owner = Entity(1)
tab.Name = "prop"
tab.Entities = {Entity(56),Entity(57)}
undo.Do_Undo(tab)


Personal tools
Navigation