Placeables:Scripting
From NWN1 Custom Content Guide
Contents |
[edit] Scripting placeables
There are some placable-only function, such as animations (quite important) creation, and inventory modifying.
Have a look at them all in the NwN Lexicon. The main functions are below.
[edit] Main functions
These are a few of the more useful:
- Placeable Event List - All of the events on a placable object
- ActionPlayAnimation() - Activate switches/Placable animations/Lighting cues
- ActionSit() - Sit on any placable with this (if it is setup correctly)
- SetPlaceableIllumination() - Turn on or off any placable illuminations with this (use RecomputeStaticLighting to make sure it works correctly)
- CreateObject()
[edit] Additional functions
Some less used ones can be checking if cirtain actions can be used on it, setting or getting the various flags (plot, usable), and the event-related functions (get last closer, opener, user and so on).
