Gah - a solution with more questions. – EntropicLqd
Difference between revisions of "UE3:UTPlayerReplicationInfo instance functions (UT3)"
(Auto-generated page) |
m (added missing members) |
||
Line 10: | Line 10: | ||
{{autogenerated}} | {{autogenerated}} | ||
==Instance functions== | ==Instance functions== | ||
+ | ====AddCoins==== | ||
+ | {{code|function '''AddCoins''' ([[int]] '''Coins''')}} | ||
+ | |||
+ | <!-- enter function description --> | ||
+ | |||
+ | ====AddToEventStat==== | ||
+ | {{code|function [[int]] '''AddToEventStat''' ([[name]] '''NewStatName''', [[int]] '''Amount''')}} | ||
+ | |||
+ | <!-- enter function description --> | ||
+ | |||
====AddToNodeStat==== | ====AddToNodeStat==== | ||
{{code|function [[int]] '''AddToNodeStat''' ([[name]] '''NewStatName''', [[int]] '''Amount''')}} | {{code|function [[int]] '''AddToNodeStat''' ([[name]] '''NewStatName''', [[int]] '''Amount''')}} | ||
Line 31: | Line 41: | ||
<!-- enter function description --> | <!-- enter function description --> | ||
+ | |||
+ | ====CanBeHero==== | ||
+ | {{code|simulated function [[bool]] '''CanBeHero''' ()}} | ||
+ | |||
+ | <!-- enter function description --> | ||
+ | |||
+ | ====CheckHeroMeter==== | ||
+ | {{code|function '''CheckHeroMeter''' ()}} | ||
+ | |||
+ | <!-- enter function description --> | ||
+ | |||
+ | ====ClientOnAllPickupsTaken==== | ||
+ | {{code|function client reliable simulated '''ClientOnAllPickupsTaken''' ()}} | ||
+ | |||
+ | Called when all pickups on a map have been touched in one playthrough * | ||
====CopyProperties==== | ====CopyProperties==== | ||
Line 56: | Line 81: | ||
====GetFlag==== | ====GetFlag==== | ||
{{code|function {{cl|UTCarriedObject}} '''GetFlag''' ()}} | {{code|function {{cl|UTCarriedObject}} '''GetFlag''' ()}} | ||
+ | |||
+ | <!-- enter function description --> | ||
+ | |||
+ | ====GetHeroMeter==== | ||
+ | {{code|simulated function [[float]] '''GetHeroMeter''' ()}} | ||
<!-- enter function description --> | <!-- enter function description --> | ||
Line 63: | Line 93: | ||
'''Overrides:''' {{tl|GetLocationName|PlayerReplicationInfo}} | '''Overrides:''' {{tl|GetLocationName|PlayerReplicationInfo}} | ||
+ | |||
+ | <!-- enter function description --> | ||
+ | |||
+ | ====GetNumCoins==== | ||
+ | {{code|function [[int]] '''GetNumCoins''' ()}} | ||
<!-- enter function description --> | <!-- enter function description --> | ||
Line 78: | Line 113: | ||
====IncrementEventStat==== | ====IncrementEventStat==== | ||
{{code|function [[int]] '''IncrementEventStat''' ([[name]] '''NewStatName''')}} | {{code|function [[int]] '''IncrementEventStat''' ([[name]] '''NewStatName''')}} | ||
+ | |||
+ | <!-- enter function description --> | ||
+ | |||
+ | ====IncrementHeroMeter==== | ||
+ | {{code|function '''IncrementHeroMeter''' ([[float]] '''AddedValue''', optional [[class]]<{{cl|UTDamageType}}> '''DamageType''')}} | ||
+ | |||
+ | <!-- enter function description --> | ||
+ | |||
+ | ====IncrementKills==== | ||
+ | {{code|function '''IncrementKills''' ([[bool]] '''bEnemyKill''', [[class]]<{{cl|UTDamageType}}> '''DamageType''')}} | ||
<!-- enter function description --> | <!-- enter function description --> | ||
Line 108: | Line 153: | ||
====IncrementVehicleKillStat==== | ====IncrementVehicleKillStat==== | ||
{{code|function [[int]] '''IncrementVehicleKillStat''' ([[name]] '''NewStatName''')}} | {{code|function [[int]] '''IncrementVehicleKillStat''' ([[name]] '''NewStatName''')}} | ||
+ | |||
+ | <!-- enter function description --> | ||
+ | |||
+ | ====IsHero==== | ||
+ | {{code|simulated function [[bool]] '''IsHero''' ()}} | ||
<!-- enter function description --> | <!-- enter function description --> | ||
Line 125: | Line 175: | ||
====RenderMapIcon==== | ====RenderMapIcon==== | ||
{{code|simulated function '''RenderMapIcon''' ({{cl|UTMapInfo}} '''MP''', {{cl|Canvas}} '''Canvas''', {{cl|UTPlayerController}} '''HUDPlayerOwner''', {{tl|LinearColor|Object|structs}} '''FinalColor''')}} | {{code|simulated function '''RenderMapIcon''' ({{cl|UTMapInfo}} '''MP''', {{cl|Canvas}} '''Canvas''', {{cl|UTPlayerController}} '''HUDPlayerOwner''', {{tl|LinearColor|Object|structs}} '''FinalColor''')}} | ||
+ | |||
+ | <!-- enter function description --> | ||
+ | |||
+ | ====ResetHero==== | ||
+ | {{code|function '''ResetHero''' ()}} | ||
<!-- enter function description --> | <!-- enter function description --> | ||
Line 210: | Line 265: | ||
====StopPowerupTimeStat==== | ====StopPowerupTimeStat==== | ||
{{code|function '''StopPowerupTimeStat''' ([[name]] '''NewStatName''')}} | {{code|function '''StopPowerupTimeStat''' ([[name]] '''NewStatName''')}} | ||
+ | |||
+ | <!-- enter function description --> | ||
+ | |||
+ | ====TriggerHero==== | ||
+ | {{code|function [[bool]] '''TriggerHero''' ()}} | ||
<!-- enter function description --> | <!-- enter function description --> | ||
Line 217: | Line 277: | ||
Util to swamp the team skin colour on a custom character mesh. | Util to swamp the team skin colour on a custom character mesh. | ||
+ | |||
+ | ====UpdateEventStatAchievements==== | ||
+ | {{code|function '''UpdateEventStatAchievements''' ([[name]] '''StatName''')}} | ||
+ | |||
+ | <!-- enter function description --> | ||
+ | |||
+ | ====UpdatePickupFlags==== | ||
+ | {{code|function [[int]] '''UpdatePickupFlags''' ([[int]] '''index''')}} | ||
+ | |||
+ | <!-- enter function description --> | ||
====UpdatePlayerLocation==== | ====UpdatePlayerLocation==== | ||
Line 222: | Line 292: | ||
'''Overrides:''' {{tl|UpdatePlayerLocation|PlayerReplicationInfo}} | '''Overrides:''' {{tl|UpdatePlayerLocation|PlayerReplicationInfo}} | ||
+ | |||
+ | <!-- enter function description --> | ||
+ | |||
+ | ====UpdatePowerupAchievements==== | ||
+ | {{code|function '''UpdatePowerupAchievements''' ([[name]] '''StatName''', [[int]] '''time''')}} | ||
<!-- enter function description --> | <!-- enter function description --> |
Latest revision as of 05:16, 16 August 2009
Object >> Actor >> Info >> ReplicationInfo >> PlayerReplicationInfo >> UTPlayerReplicationInfo (instance functions) |
Contents
- 1 Instance functions
- 1.1 AddCoins
- 1.2 AddToEventStat
- 1.3 AddToNodeStat
- 1.4 AllowClientToTeleport
- 1.5 AttemptMidGameMenu
- 1.6 CanBeHero
- 1.7 CheckHeroMeter
- 1.8 ClientOnAllPickupsTaken
- 1.9 CopyProperties
- 1.10 GetCallSign
- 1.11 GetCustomCharOtherTeamString
- 1.12 GetCustomCharTeamString
- 1.13 GetFlag
- 1.14 GetHeroMeter
- 1.15 GetLocationName
- 1.16 GetNumCoins
- 1.17 GetStartObjective
- 1.18 IncrementDeathStat
- 1.19 IncrementEventStat
- 1.20 IncrementHeroMeter
- 1.21 IncrementKills
- 1.22 IncrementKillStat
- 1.23 IncrementNodeStat
- 1.24 IncrementPickupStat
- 1.25 IncrementSpree
- 1.26 IncrementSuicideStat
- 1.27 IncrementVehicleKillStat
- 1.28 IsHero
- 1.29 LogMultiKills
- 1.30 OverrideWith
- 1.31 RenderMapIcon
- 1.32 ResetHero
- 1.33 RetryProcessCharacterData
- 1.34 SeamlessTravelTo
- 1.35 ServerTeleportToActor
- 1.36 SetCharacterData
- 1.37 SetCharacterMesh
- 1.38 SetFirstPersonArmInfo
- 1.39 SetFlag
- 1.40 SetOtherTeamSkin
- 1.41 SetStartObjective
- 1.42 ShouldBroadCastWelcomeMessage
- 1.43 ShowMidGameMenu
- 1.44 StartDrivingStat
- 1.45 StartPowerupTimeStat
- 1.46 StopDrivingStat
- 1.47 StopPowerupTimeStat
- 1.48 TriggerHero
- 1.49 UpdateCustomTeamSkin
- 1.50 UpdateEventStatAchievements
- 1.51 UpdatePickupFlags
- 1.52 UpdatePlayerLocation
- 1.53 UpdatePowerupAchievements
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. |
Instance functions[edit]
AddCoins[edit]
AddToEventStat[edit]
AddToNodeStat[edit]
AllowClientToTeleport[edit]
The function is used to setup the conditions that allow a teleport. It also defers to the gameinfo
Parameters:
- DestinationActor - The actor to teleport to
- OwnerPawn - returns the pawn owned by the controlling owner casts to UTPawn
Returns:
- True if the teleport is allowed
AttemptMidGameMenu[edit]
CanBeHero[edit]
CheckHeroMeter[edit]
ClientOnAllPickupsTaken[edit]
Called when all pickups on a map have been touched in one playthrough *
CopyProperties[edit]
Overrides: PlayerReplicationInfo.CopyProperties
GetCallSign[edit]
GetCustomCharOtherTeamString[edit]
GetCustomCharTeamString[edit]
Called by custom character code when building player mesh to create team-coloured texture.
GetFlag[edit]
GetHeroMeter[edit]
GetLocationName[edit]
Overrides: PlayerReplicationInfo.GetLocationName
GetNumCoins[edit]
GetStartObjective[edit]
IncrementDeathStat[edit]
IncrementEventStat[edit]
IncrementHeroMeter[edit]
IncrementKills[edit]
IncrementKillStat[edit]
IncrementNodeStat[edit]
IncrementPickupStat[edit]
IncrementSpree[edit]
IncrementSuicideStat[edit]
IncrementVehicleKillStat[edit]
IsHero[edit]
LogMultiKills[edit]
OverrideWith[edit]
Overrides: PlayerReplicationInfo.OverrideWith
RenderMapIcon[edit]
ResetHero[edit]
RetryProcessCharacterData[edit]
triggers custom mesh creation only if we didn't get one this is used on a timer to retry after a delay when we don't think we have all the necessary info
SeamlessTravelTo[edit]
Overrides: PlayerReplicationInfo.SeamlessTravelTo
called by seamless travel when initializing a player on the other side - copy properties to the new PRI that should persist
ServerTeleportToActor[edit]
This function is used to teleport directly to actor. Currently, only 2 types of actors support teleporting. UTGameObjectives and UTVehicle_Leviathans.
Parameters:
- DestinationActor - This is the Actor the player is trying to teleport to
SetCharacterData[edit]
sets character data, triggering an update for the local player and any clients
SetCharacterMesh[edit]
Accessor that sets the custom character mesh to use for this PRI, and updates instance of player in map if there is one.
SetFirstPersonArmInfo[edit]
Assign a arm mesh and material to this PRI, and updates and instance of player in the map accordingly.
SetFlag[edit]
SetOtherTeamSkin[edit]
Save the materials off the supplied mesh as the 'other' team materials.
SetStartObjective[edit]
ShouldBroadCastWelcomeMessage[edit]
Overrides: PlayerReplicationInfo.ShouldBroadCastWelcomeMessage
Returns true if should broadcast player welcome/left messages. Current conditions: must be a human player a network game
ShowMidGameMenu[edit]
StartDrivingStat[edit]
StartPowerupTimeStat[edit]
StopDrivingStat[edit]
StopPowerupTimeStat[edit]
TriggerHero[edit]
UpdateCustomTeamSkin[edit]
Util to swamp the team skin colour on a custom character mesh.
UpdateEventStatAchievements[edit]
UpdatePickupFlags[edit]
UpdatePlayerLocation[edit]
Overrides: PlayerReplicationInfo.UpdatePlayerLocation