$Angle1 = "-78.4192 -41.6755 104.405 1 0 1 1.63";
function ApplyCamAngle(%Client)
{
%camera = %client.camera;
%bot = new aiPlayer(%Client.name)
{
datablock=playerStandardArmor;
position="0 0 -20";
};
%Client.BotDeathThingy = %Bot;
%client.setControlObject(%camera);
%camera.setControlObject(%Bot);
%camera.setTransform($Angle1);
}
}
package SwolDeath
{
function gameConnection::onDeath(%Client, %KillerPlayer, %Killer, %DamageType, %a)
{
parent::onDeath(%Client, %KillerPlayer, %Killer, %DamageType, %a);
Schedule(1500,0,ApplyCamAngle,%Client);
}
};
ActivatePackage(SwolDeath);
if I apply the camera angle when the player is alive, all of it works but after the player dies the camera doesn't orient itself properly to $Angle1, it instead remains where the player died, how can I fix this