GetClass
From GECK
A function added by the New Vegas Script Extender.
Contents
Description
Returns the Class of the specified Actor.
Syntax
(class) Actor.GetClass Actor:NPC
Example
ref rClass let rClass := GetClass SomeNPCBaseForm if rClass == BoomerClass ; blow something up endif let rClass := SomeNPCRef.GetClass if rClass == Drunk ; play a drinking anim endif
See Also
- GetIsClass (to return a boolean)
- GetNameOfClass (to return a string)
- SetClass