Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Player can fly, but they can't interact, possible?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Player can fly, but they can't interact, possible? (Read 552 times)
Advanced Bot
December 14, 2013, 09:01:47 PM
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
»
Ad Bot
Advertisement
Ipquarx
December 15, 2013, 10:20:27 AM
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.
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Player can fly, but they can't interact, possible?