The ApplyEffectAtLocation() NWScript command causes the indicated effect to affect the indicated location for the indicated duration. Not all effects are appropriate for all duration types, but this command does not enforce that; it is left up to the scripter to avoid such things. This command is primarily used with visual effects and some areas of effect, as most other effects require an object to be sensible. (E.g., one cannot increase the intelligence of a location, as locations do not have ability scores.)
Attributes | Values |
---|
rdfs:label
| |
rdfs:comment
| - The ApplyEffectAtLocation() NWScript command causes the indicated effect to affect the indicated location for the indicated duration. Not all effects are appropriate for all duration types, but this command does not enforce that; it is left up to the scripter to avoid such things. This command is primarily used with visual effects and some areas of effect, as most other effects require an object to be sensible. (E.g., one cannot increase the intelligence of a location, as locations do not have ability scores.)
- function ApplyEffectAtLocation (int nDurationType, effect eEffect, location lLocation, float fDuration=0.0f) Apply eEffect at lLocation.
* Return type: void
* Include file: nwscriptdefn
|
param3desc
| - The location where the effect will be applied.
|
dcterms:subject
| |
dbkwik:nwn2/proper...iPageUsesTemplate
| |
returns
| |
Name
| |
param
| - location lTarget
- float fDuration
- int nDurationType
- effect eEffect
|
param2desc
| - The effect that will be applied.
|
param1desc
| - A DURATION_TYPE_* constant, indicating whether the effect is to be applied instantly , temporarily , or permanently .
|
dbkwik:nwn/property/wikiPageUsesTemplate
| |
param4desc
| - The time for which the effect will persist. This only applies if the duration type is temporary.
|
param4default
| |
abstract
| - The ApplyEffectAtLocation() NWScript command causes the indicated effect to affect the indicated location for the indicated duration. Not all effects are appropriate for all duration types, but this command does not enforce that; it is left up to the scripter to avoid such things. This command is primarily used with visual effects and some areas of effect, as most other effects require an object to be sensible. (E.g., one cannot increase the intelligence of a location, as locations do not have ability scores.)
- function ApplyEffectAtLocation (int nDurationType, effect eEffect, location lLocation, float fDuration=0.0f) Apply eEffect at lLocation.
* Return type: void
* Include file: nwscriptdefn
|