Well I came up with a work around and I'm not sure if it's a terrible idea or not. I created a script object which is basically a fake client
if(!isObject(FakeClientSO))
{
new scriptObject(FakeClientSO)
{
brickgroup = 888888;
bl_id = 888888;
name = "North Korea";
};
}
%proj = new Projectile()
{
dataBlock = tankShellProjectile;
initialPosition = %position;
initialVelocity = 0;
client = FakeClientSO;
};
It works... but will I forget up public brick functionality or other bad things by doing this?
EDIT: One thing I've noticed, is that every time I'm killed by a missile I get this error.
base/server/scripts/game.cs (1003): Unknown command getPlayerName.
Object FakeClientSO(21994) FakeClientSO -> FakeClientSO -> ScriptObject -> SimObjectYou're not allowed to make any functions for objects called getPlayerName so there's no real way to get rid of this issue lmao