This is what I have:
This is in my projectile class and notice the line that checks to see if the object hit is a vehicle and if so it spawns a EMPTime who's owner is the hit actor.
Then in my EMPTime class there is an error:
It doesn't know that Owner is a vehicle and does have the variable bStalled, so it says Unrecognized member 'bStalled' in class 'Actor.
How would I get around this?
This is in my projectile class and notice the line that checks to see if the object hit is a vehicle and if so it spawns a EMPTime who's owner is the hit actor.
Code:
function SuperExplosion()
{
local actor HitActor;
local vector HitLocation, HitNormal;
local int Time;
HurtRadius(ComboDamage, ComboRadius, class'DamTypeShockTankShockBall', ComboMomentumTransfer, Location );
Spawn(class'EMPExplosion');
Time=(Level.TimeSeconds - 1);
//Time=/*(class'EMPTime'.default.StopTime)-*/(class'EMPTime'.default.StartTime);
//VehicleMessage
//VehicleMessage=VehicleMessage$(StopTime-TimeStopped)$" Sec Left.";
VehicleMessage=VehicleMessage$(Time)$" Sec Left.";
//endVehicleMessage
//Spawn(class'ONSShockTankShockExplosion');
if ( (Level.NetMode != NM_DedicatedServer) && EffectIsRelevant(Location,false) )
{
HitActor = Trace(HitLocation, HitNormal,Location - Vect(0,0,120), Location,false);
if(HitActor.IsA('Vehicle'))
{
Pawn(HitActor).spawn(class'EMPTime',HitActor);
}
class'EMPMessage'.default.string0 = VehicleMessage;
BroadcastLocalizedMessage(class'EMPMessage',0,,,HitActor);
if ( HitActor != None )
Spawn(class'ComboDecal',self,,HitLocation, rotator(vect(0,0,-1)));
}
PlaySound(ComboSound, SLOT_None,1.0,,800);
DestroyTrails();
Destroy();
}
Then in my EMPTime class there is an error:
Code:
simulated event Trigger( Actor Other, Pawn EventInstagator )
{
SetTimer(StopTime , false);
Owner.bStalled = true; //Error
log("Got Trigger");
}
It doesn't know that Owner is a vehicle and does have the variable bStalled, so it says Unrecognized member 'bStalled' in class 'Actor.
How would I get around this?