Entity.SetSaveValue

From GMod Wiki

Revision as of 01:20, 4 April 2011 by Jcw87 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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