Difference between revisions of "GetObjectVisualTransform"

From NWN Lexicon
Jump to: navigation, search
(Parameters)
(basic remark)
 
Line 1: Line 1:
{{NWNEE}}Gets a visual transform on the given object.
+
{{DISPLAYTITLE:GetObjectVisualTransform(object, int)}}__NOTOC__{{NWNEE}}Gets a visual transform on the given object.
  
 
<nwscript>
 
<nwscript>
float GetObjectVisualTransform(object oObject, int nTransform);
+
float GetObjectVisualTransform(
 +
    object oObject,
 +
    int nTransform
 +
);
 
</nwscript>
 
</nwscript>
  
Line 12: Line 15:
  
 
===Description===
 
===Description===
Gets a visual transform on the given object.<br>
+
Gets a visual transform on the given object.
<br>
+
 
 
Returns the current (or default) value.
 
Returns the current (or default) value.
  
 
===Remarks===
 
===Remarks===
{{stub section}}
+
 
 +
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===
 
===Version===
 +
 
[https://steamcommunity.com/games/704450/announcements/detail/1656639211932200914 1.74.8169]
 
[https://steamcommunity.com/games/704450/announcements/detail/1656639211932200914 1.74.8169]
  

Latest revision as of 12:37, 30 July 2020

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