Author Topic: Player Camera Views  (Read 1180 times)

Is there a way to set a player's camera view to that of another player's?

Kinda like first-person spectator mode, only you're still alive.

could possibly try %p1.setControlObject(%targetPlayer) followed immediately by %targetplayer.client.setcontrolobject(%targetPlayer);

not sure if %p1 would retain any control.
othewise you could poke into player camera controls/commands; the modes as well as how to assign them to follow player objects

could possibly try %p1.setControlObject(%targetPlayer) followed immediately by %targetplayer.client.setcontrolobject(%targetPlayer);

not sure if %p1 would retain any control.
othewise you could poke into player camera controls/commands; the modes as well as how to assign them to follow player objects
If you do %p1.setControlObject(%targetPlayer); then wouldn't it set the player to the target instead of the camera?
Wouldn't it need to be:
%p1.client.camera.setControlObject(%targetPlayer);
?
And what do you mean by "Otherwise you could poke into the player camera controls/commands"?

%p1 is the player 1's client

the client automatically sees from the perspective of its controlled object. doing %client.camera.setcontrolobject just sets it so that you see from your cameras perspective but control your player.

poking into camera controls/commands: using camera.setmode/setobjectmode (or whatever that method was) and seeing if you can do something with that.

do a dump(); on a %client.camera and tool around with the methods that are listed. You might find looking into addons like the default camera control events (or my camera control advanced events) useful