AttachCamera(object, object, int)
From NWN Lexicon
Jump to navigationJump to searchSets the object oPlayer's camera will be attached to.
Parameters
- oPlayer
- The player for whom the camera behavior will be updated.
- oTarget
- A valid creature or placeable. If oTarget is OBJECT_INVALID, it will revert the camera back to oPlayer's character.
- bFindClearView
- if TRUE, the client will attempt to find a camera position where oTarget is in view.
Description
Sets the object oPlayer's camera will be attached to.
The target must be known to oPlayer's client, this means it must be in the same area and within visible distance.
- SetObjectVisibleDistance() can be used to increase this range.
- If the target is a creature, it also must be within the perception range of oPlayer and perceived.
Notes:
- If oTarget gets destroyed while oPlayer's camera is attached to it, the camera will revert back to oPlayer's character.
- If oPlayer goes through a transition with its camera attached to a different object, it will revert back to oPlayer's character.
- The object the player's camera is attached to is not saved when saving the game.
Remarks
Version
This function was added in 1.86.8193.35 of NWN:EE.
Example
See Also
functions: |
author: Shadguy