Entity.SetKeyValue

From GMod Wiki

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



Examples

DescriptionSet the rendermode of an entity.
Used onNewerServer.png
Code
 
ent:SetKeyValue( "rendermode", RENDERMODE_TRANSTEXTURE )
ent:SetKeyValue( "renderamt", "200" )
 
OutputRendermode is set to texture with an opacity value of 200.


Additional Notes

ent:SetKeyValue("spawnflags","131072")

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox