Difference between revisions of "GetRace"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Odessa
(Created page with "{{Function |origin = NVSE |summary = Returns the race of the specified actor |name = GetRace |returnType = race |arguments = {{FunctionArgument |Name = Actor |Ty...")
 
imported>Odessa
Line 19: Line 19:
</pre>
</pre>
==See Also==
==See Also==
*[[GetIsRace]]
*[[GetIsRace]] (to return a boolean)
*[[GetRaceName]] (to return a string)
[[Category:Functions_(NVSE)]]
[[Category:Functions_(NVSE)]]

Revision as of 11:48, 28 June 2014

< [[::Category:Functions|Category:Functions]]

A function added by the New Vegas Script Extender.

Description

Returns the race of the specified actor

Syntax

[help]
(race) GetRace Actor:NPC

Example

ref rRace
let rRace := GetRace SomeNPC
if rRace == Ghoul
    ; do something ghoulish
endif

See Also