EffectTimeStop()
Returns a new effect object.
effect EffectTimeStop();
Description
Create a Time Stop effect.
Time stop applies a special module-wide pause which only the object it is applied to, and DM's, can move and cast spells/attack in.
When they do attack/cast spells, they are "paused" until the effect runs out. DelayCommands() pause while in timestop, as does the game clock.
Really, time stop is the speeding up greatly of the caster, but appropriately it seems as if everyone else is frozen in time! For multiplayer, this is a pain, when a server has to wait for 1 person using timestop.
Remarks
Constructors are special methods that return a new instance of an object. In NWN Script each effect that you can place on an object has it’s own constructor that creates a new instance of the specified effect. This effect object can then be used in an ApplyEffectToObject() Command. See Effect Constructor for more details.
Version
1.22
Example
// Apply time stop to the entering object in a trigger, // if they are Human, for 6 seconds. void main() { // Get the entering object object oEnterer = GetEnteringObject(); // Check race if(GetRacialType(oEnterer) == RACIAL_TYPE_HUMAN) { // Declare timestop effect eTime = EffectTimeStop(); // Apply it for 6 seconds ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eTime, oEnterer, 6.0); } }
See Also
categories: | Effects Functions |
author: Michael Nork, editor: Jasperre
Send comments on this topic.