Yeah I'm sort of working on a little "who killed me?" script. And I needed help, for some reason torque doesn't recognize the function setOrbitMode. When the person dies, it should say for example in a bottomPrint, Bushido killed you. Then while you wait to respawn, you orbit the person who killed you.package wsmCam
{
function gameConnection::onDeath(%this, %killerPlayer, %killer, %damageType, %damageLoc)
{
commandToClient(%this, 'bottomPrint', %killer.name SPC "killed you",
3, 2);
%client.camera.setOrbitMode(%killerPlayer);
parent::onDeath(%this, %killerPlayer, %killer, %damageType, %damageLoc);
}
};
activatePackage(wsmCam);