kfhuangy Posted March 12, 2012 Share Posted March 12, 2012 HI,I try to create a spell to summon a butterfly to go around me.But the butterfly didn't move after summon.I add some debug code to find out what happen Here is the code Scriptname SummonEffScript extends activemagiceffect Activator Property Butterfly Auto ;I use the default butterfly Reference in Skyrim EVENT OnEffectStart(Actor akTarget, Actor akCaster) Actor tg=ListenerAlias.GetActorRef() as Actor ObjectReference refButterfly=Game.GetPlayer().PlaceAtMe(ButterFly) refButterfly.Activate(Game.GetPlayer()) ENDEVENT here is the butterfly own script scriptName activeButterfly extends Critter Event OnStart() Debug.MessageBox("butterfly start") ENDEVENT Event OnActivate(ObjectReference akActionRef) Debug.MessageBox("butterfly active") EndEvent None of the messagebox show to me.How can i do?Thanks in advance Link to comment Share on other sites More sharing options...
silverflasher Posted November 28, 2012 Share Posted November 28, 2012 try with event onload() Debug.MessageBox("butterfly start") endevent for the onactivate, is another trouble.dunno, try with refButterfly.enable() before activate it..but it is fair to say :D Link to comment Share on other sites More sharing options...
Recommended Posts