Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
previous class next class | frames no frames

# Gameplay.ActionShakeCamera

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

    class ActionShakeCamera extends Scripting.Action;

    var() float rollMagnitude "How far to roll the view";
    var() float rollRate "How fast to roll the view";
    var() float rollTime "How long to roll the view";

    var() actionnoresolve Vector offsetMagnitude "How far to offset the view";
    var() actionnoresolve Vector offsetRate "How fast to offset the view";
    var() float offsetTime "How long to offset the view";

    latent function Variable execute()
    {
    	local PlayerCharacterController pcc;

    	Super.execute();

    	pcc = PlayerCharacterController(parentScript.Level.GetLocalPlayerController());

    	if (pcc != None)
    	{
    		pcc.ShakeView(rollTime, rollMagnitude, offsetMagnitude, rollRate, offsetRate, offsetTime);
    	}
    	else
    	{
    		SLog("Couldn't get the players controller");
    	}

    	return None;
    }

    // editorDisplayString
    function editorDisplayString(out string s)
    {
    	s = "Shake the players view";
    }

    defaultproperties
    {
    	rollMagnitude		= 400.0
    	rollRate			= 12000.0
    	rollTime			= 25.0

    	offsetMagnitude		= (X=5.0,Y=0.0,Z=10.0)
    	offsetRate			= (X=250.0,Y=250.0,Z=250.0)
    	offsetTime			= 10.0

    	returnType			= None
    	actionDisplayName	= "Shake Camera"
    	actionHelp			= "Sakes the players view"
    	category			= "AudioVisual"
    }

Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
previous class next class | frames no frames

Class file time: ne 5.9.2004 15:53:24.000 - Creation time: st 23.5.2018 00:10:40.616 - Created with UnCodeX