Author Topic: Is it possible to set a new Default Playertype?  (Read 1000 times)

Aight, i just got back from school and tried PlayerNoJet,

Code: [Select]
package defaultplayertype
{
function GameConnection::spawnPlayer(%this)
{
Parent::spawnPlayer(%this);
%this.player.changeDatablock(PlayerNoJet);
}
};
activatePackage(defaultPlayertype)

That's what the cs file looks like. I have the description in, but it's still not working. Yes, i enabled the add-on also.

No jet isn't the right name for it. I think it might be player_nojet
Or,event a changeplayerdatablock, go into mission editor, while in admin fly mode,
and select yourself. Teh naem is der.

put the description in, saved as a CS file

Wait, you put the description in the server.cs? Or the description is a .cs file? Either of those are wrong. The description is its own file in .txt format.


No jet isn't the right name for it. I think it might be player_nojet
No.
The correct one is "PlayerNoJet". I looked at the Datablock itself.

No.
The correct one is "PlayerNoJet". I looked at the Datablock itself.

Huh...
Then why wont it work :(.

Try this.
Code: [Select]
package defaultPlayertype
{
function GameConnection::spawnPlayer(%this)
{
Parent::spawnPlayer(%this);
%this.player.changeDatablock(playerNoJet);
}
};
activatePackage(defaultPlayertype)
You have the code right.