Garry's Mod Wiki

The object used in the saverestore, mainly in saverestore.AddSaveHook.

It allows you to write blocks directly into the save game files used by Half-Life 2 save system when such save is being saved.


void ISave:EndBlock()

Ends current data block started with ISave:StartBlock and returns to the parent block.

To avoid all sorts of errors, you must end all blocks you start.

void ISave:StartBlock( string name )

Starts a new block of data that you can write to inside current block. Blocks must be ended with ISave:EndBlock.

void ISave:WriteAngle( Angle ang )

Writes an Angle to the save object.

void ISave:WriteBool( boolean bool )

Writes a boolean to the save object.

void ISave:WriteEntity( Entity ent )

Writes an Entity to the save object.

void ISave:WriteFloat( number float )

Writes a floating point number to the save object.

void ISave:WriteInt( number int )

Writes an integer number to the save object.

void ISave:WriteString( string str )

Writes a string to the save object.

void ISave:WriteVector( Vector vec )

Writes a Vector to the save object.

Page Links

Special Pages



Render Time: 37ms

Session 0
DB GetPage 4
Generate Html 9
SaveChanges 9
Render Body 0
Render Sidebar 11