Author Topic: setOrbitMode on a player?  (Read 1036 times)

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.
Code: [Select]
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);
« Last Edit: May 20, 2009, 04:53:47 PM by Snip3r »

Its %client.camera for a start, and I think you'll have more troubles down the road. If you call %client.camera.setOrbitMode() incorrectly it will give you a bit of documentation on parameters.

Its %client.camera for a start, and I think you'll have more troubles down the road. If you call %client.camera.setOrbitMode() incorrectly it will give you a bit of documentation on parameters.
Why does it matter if it gives me documentation on parameters?
« Last Edit: May 20, 2009, 04:48:18 PM by Snip3r »

Because you don't know the correct ones, and i'm not going to tell you.

Because you don't know the correct ones, and i'm not going to tell you.
Why not?

Because I just explained how you can find it out for yourself. Stop being lazy or people will be less inclined to help you.

Can't you do setorbitmode(dump); then dump.dump; to find out?

Can't you do setorbitmode(dump); then dump.dump; to find out?
No actually. You can't.

Can't you do setorbitmode(dump); then dump.dump; to find out?
It seems setOrbitMode isn't a function.

It's a method of an object.. Do findLocalClient().camera.dump();

It's a method of an object.. Do findLocalClient().camera.dump();

You kinda just told him...

I suddenly feel less inclined to help him.

You kinda just told him...

I gave him a way to find out the answer to his question, I didn't directly answer it.

I suddenly feel less inclined to help him.

I haven't seen you successfully help anyone in Coding Help for a while - you seem to just confuse them further.


Meh... You're right... Because of you, I have decided to shut up and stop helping when I barely know much on the topic.

Meh... You're right... Because of you, I have decided to shut up and stop helping when I barely know much on the topic.
Come, join me. :cookieMonster: