Author Topic: Player can fly, but they can't interact, possible?  (Read 552 times)

As I have asked here (Weeks ago) how players could fly without glitchy moving, I have finally decided to code it.

   function Player::setFlying(%this,%val)
   {
      if(!isObject(%this))
         return;
      %cl = %this.client;
      if(%val == 1)
      {
         %camera = %cl.camera;
         %camera.setFlyMode();
         %camera.mode = "Observer";
         %camera.mountObject(%this,0);
         %cl.setControlObject(%camera);
      }
   }


This is used for players to fly.

Not sure how they can move and do thing while moving the camera
« Last Edit: December 14, 2013, 10:41:12 PM by Advanced Bot »

It's not possible to have the player interact with things because what you're doing is quite literally disconnecting the client from their body, preventing them from using it in any way.