Jump to content

CameraCommand help please


Fienyx

Recommended Posts

Ok, I'm making a ring to summon a raven, which then should be able to spy for you. I have the ring added, when I put the ring on, the raven is summoned, when I take the ring off, the raven disappears. All how it should. Then, when I activate/talk to the raven, I drop into sneak and get the message, but the camera doesn't move. As this is a W.I.P, this is an unfinished script. Right now, I just need to get the camera to move, after that works, then I have to figure out how to disable the player controls (easy as I have already done that, just removed til I get the camera figured out) and enable me to just use the forward control with the raven.

 

Here is the script as as ATM

 

 

 

scn RSRavenScript
 
ref raven
float Rx
float Ry
float Rz
 
begin OnActivate
  
     If (player.IsSneaking == 0)
         TapControl 9
     elseif (player.IsSneaking == 1)
     endif

     Message "Eric, I need you to spy."
 
     player.addspell RSRavenControl 
end 

 

 

 

Ok,  I changed the script to look like this. (above) I do set to sneak if I'm not, and if I am, I stay in sneak. That works. It also adds the spell, which I have set as an ability, so it should start soon as it's added, just like how the ring un/summons the raven.  

 

Here's the raven control script, as is ATM.

 

 

 

scn RSRavenControlScript
 
ref raven
ref player
float Rx
float Ry
float Rz
 
begin ScriptEffectStart
 
     set raven to RSRavenSpy
     set player to getself
 
     If (player.IsSneaking == 1)
          DisablePlayerControls
          EnableControl 9
          return
     elseif (player.IsSneaking == 0) 
          EnablePlayerControls
          return
     endif 
end
 
begin scripteffectupdate
 
     If (player.IsSneaking == 1)
          set Rx to raven.getpos x
          set Ry to raven.getpos y
          set Rz to raven.getpos z
          CameraMoveToPosition Rx Ry Rz
          message "Eric is looking."
     endif 
end
 
begin scripteffectfinish
     CameraReset
     message "You've seen enough."
end

 

 

 

The camera doesn't move, player controls don't disable. Eventually, I want to make it so the script effect will end on 3 conditions,  1. player leaves sneak, 2. player is attacked, 3. Raven is killed.

When the raven dies, you have to un/re-equip the ring. That last part works already.

 

here's the file if anyone wants to look / play around with it.

 

RavenSkullRing.7z 

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use