Author Topic: player camera observe client  (Read 905 times)

Don't know if i worded the title correctly or not but, i started making a non lethal weapon a few months ago but never finished it because i didn't know how to script this one part, when a player is hit by the weapon's projectile their screen shakes violently and their screen is white for awhile (its so posed to be like a flash bang grenade) i wanted the victim's motor skills disabled and his camera to observe himself for 5 seconds but i could never figure out how to script that part, can some one tell me how.
« Last Edit: June 01, 2013, 04:34:36 PM by GhostStar »


Code: [Select]
if(!isObject(%client.camera))
return;
if(!isObject(%client.player))
return;

%client.camera.setMode("Corpse",%client.player);
%client.setControlObject(%client.camera);

is this the code for making the player observe himself?

is this the code for making the player observe himself?
It is. Use %client.setControlObject(%client.player); to set them back to normal.