NPC.GetExpression

From GMod Wiki

Jump to: navigation, search
Function
Syntax NPC:GetExpression( )
Description:
Gets the NPC's facial expression.
Returns: String
In Object: Npc
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=NPC.GetExpression]NPC.GetExpression [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSets a citizen's expression to scared, then prints it.
Used onNewerServer.png
Code
 
local ent = ents.FindByClass( "npc_citizen" )[1];
ent:SetExpression( "scenes/Expressions/citizen_scared_idle_01.vcd" );
MsgN( ent:GetExpression() );
 
Output"scenes/Expressions/citizen_scared_idle_01.vcd"


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox