The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall
UE3:GameplayEventsWriter (UDK)
Object >> GameplayEvents >> GameplayEventsWriter |
Contents
- 1 Constants
- 2 Properties
- 3 Functions
- 3.1 Native functions
- 3.1.1 CloseStatsFile
- 3.1.2 EndLogging
- 3.1.3 LogAllPlayerPositionsEvent
- 3.1.4 LogDamageEvent
- 3.1.5 LogGameIntEvent
- 3.1.6 LogGameStringEvent
- 3.1.7 LogPlayerFloatEvent
- 3.1.8 LogPlayerIntEvent
- 3.1.9 LogPlayerKillDeath
- 3.1.10 LogPlayerLoginChange
- 3.1.11 LogPlayerPlayerEvent
- 3.1.12 LogPlayerSpawnEvent
- 3.1.13 LogPlayerStringEvent
- 3.1.14 LogProjectileIntEvent
- 3.1.15 LogSystemPollEvents
- 3.1.16 LogTeamIntEvent
- 3.1.17 LogWeaponIntEvent
- 3.1.18 OpenStatsFile
- 3.1.19 SerializeFooter
- 3.1.20 SerializeHeader
- 3.1.21 StartLogging
- 3.2 Other instance functions
- 3.1 Native functions
- Package:
- Engine
- Direct subclass:
- UTGameplayEventsWriter
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Streams gameplay events recorded during a session to disk
Constants[edit]
See GameplayEventsWriter constants.
Properties[edit]
Game[edit]
Type: GameInfo
Modifiers: const
Reference to the game (set by StartLogging/EndLogging)
Functions[edit]
Native functions[edit]
CloseStatsFile[edit]
Overrides: GameplayEvents.CloseStatsFile
Closes and deletes the archive that was being written to clearing all data stored within
EndLogging[edit]
Mark the end of a logging session closes file, stops polling, etc
LogAllPlayerPositionsEvent[edit]
Logs the location of all players when this event occurred
Parameters:
- EventId - the event being logged
LogDamageEvent[edit]
Logs damage with the amount that was done and to whom it was done
Parameters:
- EventId - the event being logged
- Player - the player that triggered the event
- DmgType - the damage type that was done
- Target - the player being damaged
- Amount - the amount of damage done
LogGameIntEvent[edit]
Logs an int base game event
Parameters:
- EventId - the event being logged
- Value - the value associated with the event
LogGameStringEvent[edit]
Logs a string based game event
Parameters:
- EventId - the event being logged
- Value - the value associated with the event
LogPlayerFloatEvent[edit]
Logs an event with an float value associated with it
Parameters:
- EventId - the event being logged
- Player - the player that triggered the event
- Value - the value for this event
LogPlayerIntEvent[edit]
Logs an event with an integer value associated with it
Parameters:
- EventId - the event being logged
- Player - the player that triggered the event
- Value - the value for this event
LogPlayerKillDeath[edit]
Logs a player killing and a player being killed
Parameters:
- EventId - the event that should be written
- KillType - the additional information about a kill
- Killer - the player that did the killing
- DmgType - the damage type that was done
- Dead - the player that was killed
LogPlayerLoginChange[edit]
Logs when a player leaves/joins a session
Parameters:
- EventId - the login/logout event for the player
- Player - the player that joined/left
- PlayerName - the name of the player in question
- PlayerId - the net id of the player in question
- bSplitScreen - whether the player is on splitscreen
LogPlayerPlayerEvent[edit]
Logs a player to player event
Parameters:
- EventId - the event that should be written
- Player - the player that triggered the event
- Target - the player that was the recipient
LogPlayerSpawnEvent[edit]
Logs a spawn event for a player (team, class, etc)
Parameters:
- EventId - the event being logged
- Player - the player that triggered the event
- PawnClass - the pawn this player spawned with
- Team - the team the player is on
LogPlayerStringEvent[edit]
Logs an event with an string value associated with it
Parameters:
- EventId - the event being logged
- Player - the player that triggered the event
- EventString - the value for this event
LogProjectileIntEvent[edit]
Logs a projectile event with an integer value associated with it
Parameters:
- EventId - the event being logged
- Player - the player that triggered the event
- Proj - the projectile class associated with the event
- Value - the value for this event
LogSystemPollEvents[edit]
Log various system properties like memory usage, network usage, etc.
LogTeamIntEvent[edit]
Logs a team event
Parameters:
- EventId - the event being logged
- TeamIndex - the team associated with this event
- Value - the value associated with the event
LogWeaponIntEvent[edit]
Logs a weapon event with an integer value associated with it
Parameters:
- EventId - the event being logged
- Player - the player that triggered the event
- WeaponClass - the weapon class associated with the event
- Value - the value for this event
OpenStatsFile[edit]
Overrides: GameplayEvents.OpenStatsFile
Creates the archive that we are going to write to
Parameters:
- Filename - name of the file that will be open for serialization
Returns:
- TRUE if successful, else FALSE
[edit]
Serialize the contents of the file footer
SerializeHeader[edit]
Serialize the contents of the file header
StartLogging[edit]
Mark a new session, clear existing events, etc
Parameters:
- Delta - polling frequency (0 turns it off)
Other instance functions[edit]
IsSessionInProgress[edit]
Returns whether or not a logging session has been started
Poll[edit]
Heartbeat function to record various stats (player location, etc)