For example the current player's SoundClass or Player.WeaponSlot?
Code: Select all
class PlayerSwitch : EventHandler
{
override void NetworkProcess (ConsoleEvent e)
{
let plmo = players [e.Player].mo;
let pawn = PlayerPawn(plmo);
if (e.Name ~== "PlayerSwitch_NewPlayer")
{
plmo.A_StartSound("pistol/fire", 0);
pawn.player.mo.SoundClass == "NewPlayer";
pawn.player.WeaponSlot 1 == "NewPistol";
pawn.player.WeaponSlot 2 == "NewShotgun";
...
}
}
}
pawn.player.mo.SoundClass allows the game to run, but does nothing.
pawn.player.WeaponSlot 1, etc. just doesn't work; I don't know if it's possible to switch the current character's assigned weapon slot?
If I need to post an example with all the code needed, I will.