View Single Post
Old 06-28-2013, 12:07 PM   #6
Fair Strides
@Fair Strides 2
Witty Programmer
Fair Strides 2's Avatar
Status: Moderator
Join Date: Jan 2012
Location: Oregon, United States
Posts: 754
Current Game: Master of Orion 2
Originally Posted by Fallen Guardian View Post
Since an animation is an action and is assigned as such, it'd probably be better to call ClearAllActions, but since I can't remember exactly I'll throw in ClearAllEffects as well.

void main()

DelayCommand(1.5, AssignCommand(GetFirstPC(), ClearAllActions()));
DelayCommand(1.5, AssignCommand(GetFirstPC(), ClearAllEffects()));
Of course you can adjust 1.5 to whatever delay you want and it might be prudent to change GetFirstPC to something that would call the object that last activated the armband, if you plan to have more than just the PC be able to meditate on whim.
I believe there's a function in k_inc_force.nss that's called "GetSpellTargetObject();"

The devs used it as the master target-selector for any and all lines in the vanilla spells.2da...

All of my mods are available on Deadlystream.

Always remember modders: "Quality= Effort*Time"

KSE 3.3.7 is LIVE!!! Check it out here.
Fair Strides 2 is offline   you may: quote & reply,