Hello!
var localized string MSG_InvisOn;
var localized string MSG_InvisOff;
function HealOrHurt(float DamageAmount, float DamageRadius, class<DamageType> DamageType, float Momentum, vector HitLocation)
{
local KFPawn KFP;
local Controller C;
foreach CollidingActors (class 'KFPawn', KFP, DamageRadius, HitLocation)
for( C = Level.ControllerList; C != None; C = C.nextController )
{
if( C.IsA('PlayerController') || C.IsA('xBot'))
{
C.Pawn.Visibility = 0;
C.Pawn.ClientMessage(MSG_InvisOn);
C.Pawn.bHidden = true;
}
}
}
defaultproperties
{
MSG_InvisOn="Invisible ON"
MSG_InvisOff="Invisible OFF"
}
Would be needed timer that let the player be visible after 1 minute!
How can I solve this?
C.Pawn.Visibility = 128;
C.Pawn.ClientMessage(MSG_InvisOff);
C.Pawn.bHidden = false;
THANKS! :D
var localized string MSG_InvisOn;
var localized string MSG_InvisOff;
function HealOrHurt(float DamageAmount, float DamageRadius, class<DamageType> DamageType, float Momentum, vector HitLocation)
{
local KFPawn KFP;
local Controller C;
foreach CollidingActors (class 'KFPawn', KFP, DamageRadius, HitLocation)
for( C = Level.ControllerList; C != None; C = C.nextController )
{
if( C.IsA('PlayerController') || C.IsA('xBot'))
{
C.Pawn.Visibility = 0;
C.Pawn.ClientMessage(MSG_InvisOn);
C.Pawn.bHidden = true;
}
}
}
defaultproperties
{
MSG_InvisOn="Invisible ON"
MSG_InvisOff="Invisible OFF"
}
Would be needed timer that let the player be visible after 1 minute!
How can I solve this?
C.Pawn.Visibility = 128;
C.Pawn.ClientMessage(MSG_InvisOff);
C.Pawn.bHidden = false;
THANKS! :D
Aucun commentaire:
Enregistrer un commentaire