SetObjectVisibleDistance(object, float)

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 distance (in meters) at which oObject info will be sent to clients (default 45.0).

void SetObjectVisibleDistance(
    object oObject,
    float fDistance=45.0f
);


Parameters

oObject
The object to set the visibility distance for.
fDistance
The viewing distance to set for oObject.


Description

Sets the distance (in meters) at which oObject info will be sent to clients (default 45.0). This is still subject to other limitations, such as perception ranges for creatures.

     Note: Increasing visibility ranges of many objects can have a severe negative effect on
     network latency and server performance, and rendering additional objects will
     impact graphics performance of clients. Use cautiously.


Remarks

Information icon.png This section of the article is a stub. You can help the NWN Lexicon by expanding it.


Version

This function was added in 1.86.8193.35 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:

GetObjectVisibleDistance()


 author: Shadguy