GetClass

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Returns the Class of the specified Actor.

Syntax

[help]
(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