31 lines
571 B
Ucode
31 lines
571 B
Ucode
//=============================================================================
|
|
// BlockedPath.
|
|
//
|
|
//=============================================================================
|
|
class BlockedPath extends NavigationPoint
|
|
placeable;
|
|
|
|
var bool bStartBlocked;
|
|
|
|
function PostBeginPlay()
|
|
{
|
|
bStartBlocked = bBlocked;
|
|
Super.PostBeginPlay();
|
|
}
|
|
|
|
function Reset()
|
|
{
|
|
Super.Reset();
|
|
bBlocked = bStartBlocked;
|
|
}
|
|
|
|
function Trigger( actor Other, pawn EventInstigator )
|
|
{
|
|
bBlocked = !bBlocked;
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
bBlocked=true
|
|
bBlockable=true
|
|
} |