home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Level Design
/
GLDesign.bin
/
Software
/
UnrealEngine2Runtime
/
UE2Runtime-22262001_Demo.exe
/
Engine
/
Classes
/
InventorySpot.uc
< prev
next >
Wrap
Text File
|
2003-06-23
|
1KB
|
40 lines
//=============================================================================
// InventorySpot.
//=============================================================================
class InventorySpot extends SmallNavigationPoint
native;
cpptext
{
virtual UBOOL IsIdentifiedAs(FName ActorName);
virtual AInventorySpot* GetAInventorySpot() { return this; }
}
var Pickup markedItem;
/* GetMoveTargetFor()
Possibly return pickup rather than self as movetarget
*/
function Actor GetMoveTargetFor(AIController B, float MaxWait)
{
if ( (markedItem != None) && markedItem.ReadyToPickup(MaxWait) && (B.Desireability(markedItem) > 0) )
return markedItem;
return self;
}
/* DetourWeight()
value of this path to take a quick detour (usually 0, used when on route to distant objective, but want to grab inventory for example)
*/
event float DetourWeight(Pawn Other,float PathWeight)
{
if ( (markedItem != None) && markedItem.ReadyToPickup(0) )
return markedItem.DetourWeight(Other,PathWeight);
}
defaultproperties
{
bCollideWhenPlacing=False
bHiddenEd=true
}