by Cherepoc » Mon Dec 19, 2016 5:53 am
PostBeginPlay is expected to be executed before any of actor frame actions, right? But if you stand in front of a wall and fire a projectile, then the code in it's first death frame action is executed before PostBeginPlay.
Use the code below. Start the game, change you weapon to plasmagun, run to nearby wall as close as you can, fire the projectile. You will see "Death" message appear before "PostBeginPlay".
Code: Select all
class BuggedPlasmaBall : PlasmaBall replaces PlasmaBall
{
States
{
Death:
TNT1 A 0 BugDeath;
goto Super::Death;
}
override void PostBeginPlay()
{
A_Log("PostBeginPlay");
}
void BugDeath()
{
A_Log("Death");
}
}
PostBeginPlay is expected to be executed before any of actor frame actions, right? But if you stand in front of a wall and fire a projectile, then the code in it's first death frame action is executed before PostBeginPlay.
Use the code below. Start the game, change you weapon to plasmagun, run to nearby wall as close as you can, fire the projectile. You will see "Death" message appear before "PostBeginPlay".
[code]
class BuggedPlasmaBall : PlasmaBall replaces PlasmaBall
{
States
{
Death:
TNT1 A 0 BugDeath;
goto Super::Death;
}
override void PostBeginPlay()
{
A_Log("PostBeginPlay");
}
void BugDeath()
{
A_Log("Death");
}
}
[/code]