SetAge(object, int)

From NWN Lexicon
Jump to navigationJump to search
Nwnee logo.jpg Note: This article documents Neverwinter Nights: Enhanced Edition new content or changes/updates/fixes to 1.69 functions. These are all listed under the category and patches pages.

Sets the age of oCreature.

void SetAge(
    object oCreature,
    int nAge
);

Parameters

oCreature
The object to set the soundset for.
nAge
The age to set


Description

Sets the age of oCreature.


Remarks

The toolset doesn't have an age field for NPCs, this allows you to set one which might be useful for custom content or roleplaying reasons. It can, on a longer term persistent world or if the module has a timeskip actually change the age of a creature by the right amount of time.


Version

This function was added in 1.88.8193.36 of NWN:EE.


Example

Information icon.png This article is in need of examples. You can help the NWN Lexicon by showing how to use this code effectively.


See Also

functions: GetAge()

 author: Shadguy