The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall

UE2:UtilGame (U2)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2 Object >> Actor >> UtilGame
Package: 
Engine
This class in other games:
U2XMP

UtilGame.uc $Author: Mfox $ $Date: 1/05/03 8:45p $ $Revision: 38 $ NEW: file

Static functions

ActorLookingAt

static final function bool ActorLookingAt (Actor SeeingActor, Actor Target, float FOVCos)


AddAllAmmoPercent

static function AddAllAmmoPercent (Pawn Other, float AddedAmmoPct)


DumpInventory

static final function DumpInventory (Pawn P, optional string ContextString)


FindActorByName

static final function bool FindActorByName (Actor SearchingActor, name ActorName, out Actor FoundActor)


FindNearestLandmark

static final function Landmark FindNearestLandmark (Actor A)


GetClosestOfClass

static final function Actor GetClosestOfClass (Actor InstanceActor, name ClassName, bool bIsA)


GetInventoryItem

static final function Inventory GetInventoryItem (Pawn InventoryHolder, class<InventoryInventoryType)


GetNamedActor

static final function Actor GetNamedActor (Actor InstanceActor, name N, optional bool bTryClassMatch, optional bool bAllowUnSafe)


GetNamedOrHitActor

static final function Actor GetNamedOrHitActor (Controller C, optional name TargetName, optional bool bTraceVisibleNonColliding, optional bool bTryClassMatch)


GetRotatedFireStart

static final function Object.Vector GetRotatedFireStart (Pawn SourcePawn, Object.Vector SourceLocation, Object.Rotator TargetRotation, Object.Vector FireOffset)


GiveInventory

static final function bool GiveInventory (Pawn TargetPawn, Inventory Inv)


GiveInventoryClass

static final function Inventory GiveInventoryClass (Pawn TargetPawn, class<InventoryInvClass)


GiveInventoryString

static final function Inventory GiveInventoryString (Pawn TargetPawn, coerce string InventoryString)


IsInViewCos

static final function bool IsInViewCos (Object.Vector ViewVec, Object.Vector DirVec, float FOVCos)


MakeShake

static final function MakeShake (Actor Context, Object.Vector ShakeLocation, float ShakeRadius, float ShakeMagnitude, optional float ShakeDuration)


ScaleAmmoResupplyRate

static function float ScaleAmmoResupplyRate (Pawn Other, float InitialRate)


SetTeamSkin

static final function SetTeamSkin (Actor TargetActor, int NewTeam)