I have a feeling I'll have to create Persistent Reference X Marker's and use some combination of GetPos, SetPos, and trig functions (sad face), to get it to work, but I honestly have no idea where to start.
scn aaaBRUTEDiveScriptref mySelfint counterfloat playerPosXfloat playerPosYfloat playerPosZBegin GameMode set mySelf to player set playerPosX to player.GetPos x set playerPosY to player.GetPos y set playerPosZ to player.GetPos z if IsKeyPressed 14 == 1 && counter == 0 player.PushActorAway mySelf 1 set counter to 20 endif if counter > 0 set counter to counter - 1 endifEnd
scn aaaBRUTEDiveScriptref mySelfref phantomNPCint counterfloat playerPosXfloat playerPosYfloat playerPosZBegin GameMode set mySelf to player set playerPosX to player.GetPos x set playerPosY to player.GetPos y set playerPosZ to player.GetPos z +32 if IsKeyPressed 14 == 1 && counter == 0;;14 is the scancode for Backspace player.PlaceAtMe aaaBRUTEPhantomNPC if IsKeyPressed 17 == 1;;Forward (W) set phantomNPC to player.PlaceAtMe aaaBRUTEPhantomNPC 1 64 1 phantomNPC.SetPos z playerPosZ endif if IsKeyPressed 31 == 1;;Backward (S) set phantomNPC to player.PlaceAtMe aaaBRUTEPhantomNPC 1 64 0 phantomNPC.SetPos z playerPosZ endif if IsKeyPressed 30 == 1;;Left (A) set phantomNPC to player.PlaceAtMe aaaBRUTEPhantomNPC 1 64 3 phantomNPC.SetPos z playerPosZ endif if IsKeyPressed 32 == 1;;Right (D) set phantomNPC to player.PlaceAtMe aaaBRUTEPhantomNPC 1 64 2 phantomNPC.SetPos z playerPosZ endif player.PushActorAway phantomNPC 1 set counter to 20 phantomNPC.Disable phantomNPC.MarkForDelete endif if counter > 0 set counter to counter - 1 endifEnd
scn aaaBRUTEDiveScriptint counterBegin GameMode if IsKeyPressed 14 == 1 && counter == 0 if IsKeyPressed 17 == 1 player.PlaceAtMe aaaBRUTEExplosion 1 64 1 endif if IsKeyPressed 31 == 1 player.PlaceAtMe aaaBRUTEExplosion 1 64 0 endif if IsKeyPressed 30 == 1 player.PlaceAtMe aaaBRUTEExplosion 1 64 3 endif if IsKeyPressed 32 == 1 player.PlaceAtMe aaaBRUTEExplosion 1 64 2 endif set counter to 20 endif if counter > 0 set counter to counter - 1 endifEnd