I'm a doctor, not a mechanic

Difference between revisions of "UE3:PlayerController exec functions (UDK)"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
(Talk)
m (1 revision: class descriptions for UDK January update (part 4))
 
(No difference)

Latest revision as of 05:44, 17 January 2010

UDK Object >> Actor >> Controller >> PlayerController (exec functions)
PlayerController exec functions in other games:
U2, U2XMP, UE2Runtime, UT2003, UT2004, UT3
Other member categories for this class:
events, instance functions, internal variables, native functions, states

Exec functions[edit]

BugIt[edit]

exec event BugIt (optional string ScreenShotDescription)

This function is used to print out the BugIt location. It prints out copy and paste versions for both IMing someone to type in and also a gameinfo ?options version so that you can append it to your launching url and be taken to the correct place. Additionally, it will take a screen shot so reporting bugs is a one command action!

BugItAI[edit]

exec event BugItAI (optional string ScreenShotDescription)


BugItStringCreator[edit]

exec event BugItStringCreator (const out Object.Vector ViewLocation, const out Object.Rotator ViewRotation, out string GoString, out string LocString)

This will create a BugItGo string for us. Nice for calling form c++ where you just want the string and no Screenshots *

BugItGo[edit]

exec function BugItGo (coerce float X, coerce float Y, coerce float Z, coerce int Pitch, coerce int Yaw, coerce int Roll)

This will move the player and set their rotation to the passed in values. We have this version of the BugIt family as it is easier to type in just raw numbers in the console.

Camera[edit]

exec function Camera (name NewMode)

Change Camera mode

Parameters:

  • New - camera mode to set

CauseEvent[edit]

exec function CauseEvent (optional name EventName)


CE[edit]

exec function CE (optional name EventName)

Shortcut version for LDs who get tired of typing 'CauseEvent' all day. :-)

ChangeTeam[edit]

exec function ChangeTeam (optional string TeamName)


EnableCheats[edit]

exec function EnableCheats ()


FOV[edit]

exec function FOV (float F)


ListCE[edit]

exec function ListCE ()


ListConsoleEvents[edit]

exec function ListConsoleEvents ()

Lists all console events to the HUD.

LocalTravel[edit]

exec function LocalTravel (string URL)


LogLoc[edit]

exec function LogLoc ()

Logs the current location in bugit format without taking screenshot and further routing.

Mutate[edit]

exec function Mutate (string MutateString)


NextWeapon[edit]

exec function NextWeapon ()


PathChild[edit]

exec function PathChild (optional int Cnt)


PathClear[edit]

exec function PathClear ()


PathStep[edit]

exec function PathStep (optional int Cnt)


Pause[edit]

exec function Pause ()


PrevWeapon[edit]

exec function PrevWeapon ()


QuickLoad[edit]

exec function QuickLoad ()

Loads the savegame created by the quicksave exec

QuickSave[edit]

exec function QuickSave ()

Console exec that initiates a quicksave and displays a string providing visual feedback.

RestartLevel[edit]

exec function RestartLevel ()


SaveActorConfig[edit]

exec function SaveActorConfig (coerce name actorName)

Force a save config on the specified actor.

SaveClassConfig[edit]

exec function SaveClassConfig (coerce string className)

Force a save config on the specified class.

Say[edit]

exec function Say (string Msg)


SetAudioGroupVolume[edit]

exec native function SetAudioGroupVolume (name GroupName, float Volume)

Sets the Audio Group to this the value passed in *

SetName[edit]

exec function SetName (coerce string S)


SetShowSubtitles[edit]

native simulated exec function SetShowSubtitles (bool bValue)

This will turn the subtitles on or off depending on the value of bValue

Parameters:

  • bValue - to show or not to show

ShowGameState[edit]

exec function ShowGameState ()


ShowMenu[edit]

exec function ShowMenu ()


ShowPlayerState[edit]

exec function ShowPlayerState ()


Speech[edit]

exec function Speech (name Type, int Index, string Callsign)


StartAltFire[edit]

exec function StartAltFire (optional byte FireModeNum)


StartFire[edit]

exec function StartFire (optional byte FireModeNum)


StopAltFire[edit]

exec function StopAltFire (optional byte FireModeNum)


StopFire[edit]

exec function StopFire (optional byte FireModeNum)


Suicide[edit]

exec function Suicide ()


SwitchLevel[edit]

exec function SwitchLevel (string URL)


SwitchTeam[edit]

exec function SwitchTeam ()


Talk[edit]

exec function Talk ()


TeamSay[edit]

exec function TeamSay (string Msg)


TeamTalk[edit]

exec function TeamTalk ()


ThrowWeapon[edit]

exec function ThrowWeapon ()


Use[edit]

exec function Use ()

Entry point function for player interactions with the world, re-directs to ServerUse.

UTrace[edit]

exec function UTrace ()