I want to duplicate that effect ingame if I can, but I seem to be running into a problem I can't resolve.Everything appears to be working, but the body doesn't move.
using SV ingame, I can see that bodyposZ is increasing as intended, the timer runs fine until the point where controlvar is set to 2 and the body disappears, and then everything stops as intended.
So... I was wondering if my script is faulty or if there is something else at work here. Does the ID change when a body is placed? Does the body change from a creature to a container or something?
Any answers will be appreciated. Here's the last script I tried (there have been many changes along the way):
Begin BodyDriftScriptshort controlvarshort doOncefloat bodyposZfloat bodyTimerIf ( MenuMode == 1 ) ReturnendIfIf ( GetHealth <= 0 ) If ( doOnce == 0 ) set bodyTimer to ( bodyTimer + GetSecondsPassed ) If ( bodyTimer >= 10 ) If ( controlvar < 2 ) set bodyPosZ to ( GetPos, Z + 3 ) set controlvar to 1 endIf endIf If ( controlvar == 1 ) setPos, Z, bodyposZ If bodyTimer >= 30 set controlvar to 2 set doOnce to 1 endIf endIf endIfendIf If ( controlvar == 2 ) set bodyTimer to 0 set controlvar to 0 disableendIf end BodyDriftScript