EffectStunned()
Returns a Stunned effect.
effect EffectStunned();
Description
Create a Stun effect.
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_INSTANT,eStunned,oTarget,40.0f); // Example 2 - Use EffectStunned() directly without an effect // variable. object oTarget = GetLastUsedBy(); ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectStunned(),oTarget,40.0f);
See Also
functions: | ApplyEffectAtLocation | ApplyEffectToObject |
categories: | Effects Functions |
author: Brett Lathrope
Send comments on this topic.