Moving a dead actor into a specific cell

Post » Sat Dec 29, 2012 9:02 am

Long story short i'm trying to produce a voice spell to hide bodies. I managed to produce something quite simple, it works as intended, but it's not clean sice i use " disable ", which is not really recommended with actors.

EVENT OnEffectStart(Actor akTarget, Actor akCaster)if (akCaster == Game.GetPlayer() && akTarget.IsDead() == 1)	   if akCaster.IsWeaponDrawn() == 0			 Game.ForceThirdPerson()			 Game.DisablePlayerControls(true, true, true, false, false, false, false)			 Game.Getplayer().playidle(IdleTest)			 Utility.Wait(3)			 Game.FadeOutGame(false, true, 3.0, 3.0)	   akTarget.Disable()			 Game.Getplayer().playidle(IdleStop_Loose)			 Utility.Wait(4)			 Game.Getplayer().playidle(Idle_wipebrow)			 Utility.Wait(2)			 Game.Getplayer().playidle(IdleStop_Loose)			 Game.EnablePlayerControls()endifendifEndEvent

Thing is, when i tried to include the moveto command :

	   Target.Moveto(WIDeadBodyCleanupCell)

I got this error :

type mismatch on parameter 1 (did you forget a cast?)

And i got absolutely no idea how to fix this, still at the same point after some google research. If someone can help me with that. Thanks.
User avatar
Cathrin Hummel
 
Posts: 3399
Joined: Mon Apr 16, 2007 7:16 pm

Return to V - Skyrim