state Roaming {
ignores EnemyNotVisible;
function PickDestination()
{
if ( bHasWandered && (FRand() < 0.1) )
GotoState('FadeOut');
else
Super.PickDestination();
bHasWandered = true;
}
}
I'd like to overwrite that state function PickDestination() and call ScriptedPawn's function PickDestination() in state 'Roaming' instead. But the compiler does not accept "Super(ScriptedPawn).PickDestination()": Unknown function 'PickDestination' in 'Class UnrealShare.ScriptedPawn'
Is a special syntax needed (like "Super(ScriptedPawn).Roaming.PickDestination()" or is this not possible at all because Nail's state 'Roaming' is redefined instead of extended?
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
I don't call those - I have CTRL C and CTRL V from ScriptedPawn in whatever I want. It's how I did NsMonster before XCGE19 - I did not have other solution in that time, and then adding sanity checkers where they were missing.