My trees spawn falling leaves. It all works fine. Offline the falling leaves spawn correctly and have the proper random rotation as they drop. Online though there is no rotating. They just drop. I cannot figure it out but I know it's something simple I just don't see.
The leaves drop faster if the tree is bigger drawscale. The code:
Code: Select all
class LeafA extends Projectile;
simulated function PostBeginPlay()
{
local rotator RandRot;
local float Scaler;
Super.PostBeginPlay();
Scaler=Drawscale;
if ( Role == ROLE_Authority )
{
RandRot.Pitch = FRand() * 1400 - 700;
RandRot.Yaw = FRand() * 1400 - 700;
RandRot.Roll = FRand() * 1400 - 700;
Velocity = Velocity >> RandRot;
RandSpin(50000);
Acceleration = vect(0,0,-1);
if ((scaler > 1) && (scaler 2) && (scaler