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 |
/** * * Copyright 1998-2008 Epic Games, Inc. All Rights Reserved. */ class UTSeqEvent_FlagEvent extends SequenceEvent; /** attempts to activate the event with the appropriate output for the given event type and instigator */ function Trigger(name EventType, Controller EventInstigator) { local array<int> ActivateIndices; local int i; local SeqVar_Object ObjVar; for (i = 0; i < OutputLinks.length; i++) { if (EventType == name(OutputLinks[i].LinkDesc)) { ActivateIndices[ActivateIndices.length] = i; } } if (ActivateIndices.length == 0) { ScriptLog("Not activating" @ self @ "for event" @ EventType @ "because there are no matching outputs"); } else if (CheckActivate(Originator, EventInstigator, false, ActivateIndices)) { foreach LinkedVariables(class'SeqVar_Object', ObjVar, "Instigator") { ObjVar.SetObjectValue(EventInstigator); } } } defaultproperties { MaxTriggerCount=0 bPlayerOnly=False OutputLinks(0)=(LinkDesc="Taken") OutputLinks(1)=(LinkDesc="Dropped") OutputLinks(2)=(LinkDesc="Returned") OutputLinks(3)=(LinkDesc="Captured") ObjClassVersion=2 ObjName="Flag Event" ObjCategory="Objective" Name="Default__UTSeqEvent_FlagEvent" ObjectArchetype=SequenceEvent'Engine.Default__SequenceEvent' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |