19 lines
301 B
Ucode
19 lines
301 B
Ucode
class ACTION_IfRandomPct extends ScriptedAction;
|
|
|
|
var(Action) float Probability;
|
|
|
|
function ProceedToNextAction(ScriptedController C)
|
|
{
|
|
C.ActionNum += 1;
|
|
if ( FRand() > Probability )
|
|
ProceedToSectionEnd(C);
|
|
}
|
|
|
|
function bool StartsSection()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
} |