Entity.SetSaveValue

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity.SetSaveValue( String name, Var value )
Description:
Sets a save value for an entity
Returns: nil
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.SetSaveValue]Entity.SetSaveValue [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionMake all rollermines currently on the map friendly
Used onNewerServer.png
Code
for k, v in pairs(ents.FindByClass("npc_rollermine")) do
  v:SetSaveValue("m_bHackedByAlyx", true)
end
 
Outputnone

Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox