Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

AdvKit.AdvKitSeqAct_ToggleBridge


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
/**
 * Kismet sequence to toggle spline actor bridges that can be
 * configured in AdvKitSplineActor under the Bridge category
 * 
 * 2013 by FreetimeCoder
 * www.freetimestudio.net
 */
class AdvKitSeqAct_ToggleBridge extends SequenceAction;

/**
 * Called when this sequence is activated
 */
event Activated()
{
	local bool      bBridgeActive;
	local Object    tmpObject;
	local AdvKitSplineActor tmpSplineActor;

	//make sure to set the correct state
	bBridgeActive = InputLinks[0].bHasImpulse && !InputLinks[1].bHasImpulse;

	//iterate through all the targets
	foreach Targets(tmpObject)
	{
		//only work with Spline Actors
		tmpSplineActor = AdvKitSplineActor(tmpObject);
		if(tmpSplineActor!=none)
		{
			//toggle bridge functionality
			tmpSplineActor.bBridgeActive = bBridgeActive;
		}
	}

	//finished
	ActivateOutputLink(0);
}

DefaultProperties
{
	ObjName="Toggle Bridge Spline"
	ObjCategory="AdvKit"

	InputLinks.Empty();
	InputLinks(0)=(LinkDesc="Activate")
	InputLinks(1)=(LinkDesc="Deactivate")

	//AdvKitSplineActor has no handler to call
	bCallHandler = false
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Do 25.7.2013 16:51:12.000 - Creation time: Di 17.9.2013 17:47:16.854 - Created with UnCodeX