Code: Select all
Actor Test
{
States
{
Spawn:
TROO A 20
TNT1 A 0
{
if( randompick(0,1) == 1 )
{
A_Log("jumping");
return A_State("Skok");
}
A_Log("not jumping");
}
Stop
Skok:
VILE A 20
Stop
}
}
If you spawn this actor (again without A_Log("not jumping");) and the if condition is not met then ZDoom will crash.