EffectStunned()
Returns a Stunned effect.
effect EffectStunned();
Description
Create a Stun effect.
This is a mind-effecting effect, and so immunity to mind effects prevents this from working. Stunning basically makes the mind of the target stop working, stunning what they are doing - they don't lose 2 dexterity, have -2 AC, and they can take no action whatsoever and are prone to attacks.
Remarks
Only creates the effect, the effect must still be applied to a target.
Version
1.22
Example
// Example 1 - Create a stunned effect and apply it to a target // who last used the calling object. The effect will last for 40 // seconds. object oTarget = GetLastUsedBy(); effect eStunned = EffectStunned(); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eStunned, oTarget, 40.0f); // Example 2 - Use EffectStunned() directly without an effect // variable. object oTarget = GetLastUsedBy(); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectStunned(), oTarget, 40.0f);
See Also
functions: | ApplyEffectAtLocation | ApplyEffectToObject |
categories: | Effects Functions |
author: Brett Lathrope, editor: Jasperre
Send comments on this topic.