Entity:SetSaveValue

From Garry's Mod
Jump to: navigation, search
 Entity:SetSaveValue( )

Contents

Description

Sets a save value for an entity.

Arguments

string name

Name of the save value to set

Arguments

any value

Value to set

Examples

Example

Make all rollermines currently on the map friendly

for k, v in pairs( ents.FindByClass( "npc_rollermine" ) ) do
    v:SetSaveValue( "m_bHackedByAlyx", true )
end


Personal tools
Navigation