GetObjectVisualTransform(object, int)

From NWN Lexicon
Jump to: navigation, 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.
Gets a visual transform on the given object.
float GetObjectVisualTransform(
    object oObject,
    int nTransform
);

Parameters

oObject
The object to measure the visual transform from
nTransform
An OBJECT_VISUAL_TRANSFORM_* constant specifying the tranform type to measure

Description

Gets a visual transform on the given object.

Returns the current (or default) value.

Remarks

This can be used to retrieve if an object has had any visual transform at all applied, and reset them if they have changed. The defaults are:

  • 1.0 for animation speed and object scale
  • 0.0 for translate and rotate options

Version

1.74.8169

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: SetObjectVisualTransform()
constants: OBJECT_VISUAL_TRANSFORM_* Constant Group

 author: Shadguy