Hi,
I'm having a little problem where i'm setting the default value of a global variable from another class. when i run this on a dedicated server the value logs 0.00 (locally it works fine)
I've tested various ROLE and RemoteRole's and i can't quite figure out why it's not working.
any suggestions ?
thanks
eLy
I'm having a little problem where i'm setting the default value of a global variable from another class. when i run this on a dedicated server the value logs 0.00 (locally it works fine)
I've tested various ROLE and RemoteRole's and i can't quite figure out why it's not working.
Code:
class DynamicShockProjectile extends ShockProjectile;
var float GlobalAngle;
replication
{
reliable if (ROLE == ROLE_Authority)
GlobalAngle;
}
simulated function getAngle()
{
......
[B]class'DShockComboVortex'.default.GlobalAngleTemp=GlobalAngle;[/B]
}
Code:
class DShockComboVortex extends ShockComboVortex;
var float GlobalAngleTemp;
replication
{
reliable if (ROLE == ROLE_Authority)
GlobalAngleTemp;
}
event PostBeginPlay()
{
Super.PostBeginPlay();
ScaleInterp.Mid=1.6*default.GlobalAngleTemp;
log("default.GlobalAngleTemp "$default.GlobalAngleTemp);
}
defaultproperties
{
ScaleInterp=(Start=0.400000,Mid=1.60000,End=0.200000,InTime=0.400000,OutTime=0.400000,InStyle=IS_InvExp,OutStyle=IS_InvExp)
RemoteRole=ROLE_SimulatedProxy
bAlwaysRelevant=true
ROLE==ROLE_Authority
}
any suggestions ?
thanks
eLy
Last edited: