Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 |
/** * Copyright 1998-2011 Epic Games, Inc. All Rights Reserved. */ class SeqAct_Teleport extends SequenceAction; /** If true, actor rotation will be aligned with destination actor */ var() bool bUpdateRotation; /** If actor is more than this far away, it will be teleported. Ignored if < 0 */ var() float TeleportDistance; /** If actor is NOT in one of these volumes, it will be teleported */ var() array<Volume> TeleportVolumes; /** If TRUE, check to see if this actor overlaps any other colliding actors and don't teleport there if a better option exists */ var() bool bCheckOverlap; /** @return Whether the given Actor should be teleported */ final static function bool ShouldTeleport(Actor TestActor, vector TeleportLocation, optional float TeleportDist, optional array<Volume> Volumes ) { local int VolumeIdx; if (TeleportDist > 0.0 && VSizeSq(TestActor.Location - TeleportLocation) < TeleportDist*TeleportDist) { return false; } else if (Volumes.length > 0) { for (VolumeIdx = 0; VolumeIdx < Volumes.length; ++VolumeIdx) { if (Volumes[VolumeIdx] != None && Volumes[VolumeIdx].Encompasses(TestActor)) { return false; } } } return true; } /** * Return the version number for this class. Child classes should increment this method by calling Super then adding * a individual class version to the result. When a class is first created, the number should be 0; each time one of the * link arrays is modified (VariableLinks, OutputLinks, InputLinks, etc.), the number that is added to the result of * Super.GetObjClassVersion() should be incremented by 1. * * @return the version number for this specific class. */ static event int GetObjClassVersion() { return Super.GetObjClassVersion() + 1; } defaultproperties { ObjName="Teleport" ObjCategory="Actor" VariableLinks(1)=(ExpectedType=class'SeqVar_Object',LinkDesc="Destination") VariableLinks(2)=(ExpectedType=class'SeqVar_Object',LinkDesc="Teleport Volumes",PropertyName=TeleportVolumes,bHidden=TRUE) bUpdateRotation=TRUE TeleportDistance=-1.f } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |