Author Topic: is there a controlplayer addon that works  (Read 894 times)

the one that i have doesn't respond when i type /controlPlayer

Code: [Select]
function serverCmdControlPlayer( %cl )
{
if ( !%cl.isAdmin && !%cl.isSuperAdmin )
{
return;
}

if ( !isObject( %cm = %cl.camera ) || %cl.getControlObject() !$= %cm )
{
return;
}

if ( !isObject( %pl = %cl.player ) || %pl.getState() $= "Dead" )
{
return;
}

%cm.setControlObject( %pl );
}

Change that last %cm to %cl.

I have that add-on and it works just fine, you're in camera mode when you type the command, right?

I have that add-on and it works just fine, you're in camera mode when you type the command, right?
yes

Change that last %cm to %cl.
can't change cs files

You can, just not while it's zipped.

You can, just not while it's zipped.
Some programs like IZArc and i think WinZIP/WinRAR let you

Alternatively, you can open the ZIP file with Windows Explorer

Change that last %cm to %cl.
i believe it's intentional, it looks like the purpose is to let you control your player when in admin orb/free cam (after looking at masterlegodude's post that defo seems to be the case)

not sure why it wouldn't be working as intended

i believe it's intentional, it looks like the purpose is to let you control your player when in admin orb/free cam (after looking at masterlegodude's post that defo seems to be the case)

not sure why it wouldn't be working as intended
The code in what i have is the exact same as the code in the OP, so maybe there's some other add-on that could be breaking it?

There is a fully functionally working one in DaProng's archive. I use it often, and have re downloaded it several times to different systems/after reinstalling and removing addons.

http://orbs.daprogs.com/rtb/forum.returntoblockland.com/dlm/viewFile19ed.html?id=4741

Hope this helps! :)
« Last Edit: August 25, 2016, 01:35:56 PM by Doctor Disco »