with DM.
But I have run into a wall. Literally.
First thing I decided to try was to somehow get rid of any actors in the
map that are of class ExplodingWall.
Here is the current code snippet I have been trying.
Commented out lines are some other things I tried that also have failed.
Code: Select all
ForEach AllActors(class'Actor', A)
{
if (A.IsA('ExplodingWall'))
{
log(A);
A.SetPhysics(PHYS_None);
A.SetCollision(false, false, false);
// ExplodingWall(A).bHidden = True;
// ExplodingWall(A).Health = -20.0;
// A.GoToState('Exploding');
A.Destroy();
}
}
Have tried it in both PreBeginPlay and PostBeginPlay.
Compiles fine. No errors or warning of any type in the
log file.
The ForEach loop is finding the correct actor(s).
Nothing happens. Damn walls never go anywhere.
Is what I am attempting even possible?