Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

Effect on Sneak


kaleidx
 Share

Recommended Posts

Hello TESA, I need a little help.

 

I've been coming along pretty well on teaching myself scripting but I'm still a huge noob and I've come across a little problem. I'm trying to make an actor unequip their torch when sneaking and I've gotten that part down pretty well. I'm using the magic effect method and it seems to be working fine but the problem is that I don't know how to make it a constant effect. The following is applied to a magic effect:

Scriptname zMiraiSneakTorch extends ActiveMagicEffect
{Hides torch when sneaking}

Actor Property Mirai  Auto  
Light Property Torch01  Auto  

Event OnEffectStart(Actor akTarget, Actor akCaster)
	Mirai.UnequipItem(Torch01,true)
EndEvent

And the magic effect used on an ability. The actor will unequip it but she reequips it after a short period.

How can I fix this?

Link to comment
Share on other sites

Sounds like this is an NPC you are attempting to control rather than the player character. If that is the case, your spell may be fighting with an AI package. I would suggest that using an AI package is the most effective and appropriate way to modify NPC behavior.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...