![]() |
|
Public Member Functions | |
| int | GetMainPlayerID () |
| Returns playerID of the most important player in the vehicle. | |
| void | UpdatePassenger (SCR_NameTagData tag, bool IsEntering, bool isControlledEntity=false) |
| Update current tracked passangers within the vehicle. | |
| override void | GetName (out string name, out notnull array< string > nameParams) |
| Get/update nametag name. | |
| override void | UpdateTagPos () |
| Update tag position. | |
Public Member Functions inherited from SCR_NameTagData | |
| void | UpdatePriorityEntityState () |
| Update the highest priority entity state (as ordered in enum) | |
| void | ActivateEntityState (ENameTagEntityState state) |
| Add entity state flag. | |
| void | DeactivateEntityState (ENameTagEntityState state) |
| Remove ENameTagEntityState flag. | |
| void | SetVisibility (Widget widget, bool visible, float visibleOpacity, bool animate=true) |
| Set visibility of nametag widget. | |
| void | ResizeElement (Widget widget, float targetVal) |
| Resize nametag element. | |
| void | UpdateEntityType () |
| Determine type of nametag entity. | |
| BaseCompartmentSlot | GetVehicleCompartment () |
| void | SetTagPosition (ENameTagPosition pos, bool gradualChange=true) |
| Set what is the nametag position attached to. | |
| void | SetGroup (SCR_AIGroup group) |
| Set group state if it matches with current player group. | |
| void | CheckAISubordinate (IEntity entity) |
| Set AI_SUBORDINATE if it falls under current players command. | |
| void | RemoveVehicleOccupant (IEntity vehicle) |
| Remove this tag as occupant to a vehicle tag. | |
| void | OnVehicleEntered (IEntity vehicle, BaseCompartmentManagerComponent manager, int mgrID, int slotID) |
| SCR_CompartmentAccessComponent event. | |
| void | OnVehicleLeft (IEntity vehicle, BaseCompartmentManagerComponent manager, int mgrID, int slotID) |
| SCR_CompartmentAccessComponent event. | |
| void | Cleanup (bool removeFromArray=true) |
| Cleanup. | |
| bool | InitTag (SCR_NameTagDisplay display, IEntity entity, SCR_NameTagConfig config, bool IsCurrentPlayer=false) |
| Init nametag data class, the widget is held and reused, data has to be reinitialized. | |
| void | ResetTag () |
| Uninitialize class when its being moved to unused tags in order to be reused. | |
| void | SCR_NameTagData (ResourceName layout, Widget rootWidget) |
| void | ~SCR_NameTagData () |
Protected Member Functions | |
| void | UpdateMainTag () |
| Update main tag (usually driver) | |
| override bool | UpdateEntityStateFlags () |
| Initial check of active states for JIP /return false if invalid/should be cleaned up. | |
| override void | InitDefaults () |
| Init default tag data. | |
Protected Member Functions inherited from SCR_NameTagData | |
| void | AddAsVehicleOccupant (IEntity vehicle, BaseCompartmentSlot slot, ENameTagFlags flag) |
| Add this tag as occupant to a vehicle tag. | |
| void | OnReceivedVON (int playerId, BaseTransceiver receiver, int frequency, float quality) |
| VoNComponent event, only used for "Current player" tag. | |
| void | OnLifeStateChanged (ECharacterLifeState previousLifeState, ECharacterLifeState newLifeState) |
| SCR_CharacterController event. | |
| void | OnFactionChanged (FactionAffiliationComponent owner, Faction previousFaction, Faction newFaction) |
| SCR_CharacterFactionAffiliationComponent callback. | |
| void | InitData (SCR_NameTagConfig config) |
| Init configurable data. | |
Additional Inherited Members | |
Static Public Attributes inherited from SCR_NameTagData | |
| const string | HEAD_BONE = "head" |
| const string | SPINE_BONE = "Neck1" |
| const vector | HEAD_OFFSET = "0 0.3 0" |
| const vector | BODY_OFFSET = "0 -0.1 0" |
Protected Attributes inherited from SCR_NameTagData | |
| SCR_NameTagDisplay | m_NTDisplay |
| BaseCompartmentSlot | m_VehicleCompartment |
| SCR_GroupsManagerComponent | m_GroupManager |
| SCR_PossessingManagerComponent | m_PossessingManager |
| int SCR_VehicleTagData.GetMainPlayerID | ( | ) |
Returns playerID of the most important player in the vehicle.
| override void SCR_VehicleTagData.GetName | ( | out string | name, |
| out notnull array< string > | nameParams ) |
Get/update nametag name.
| [out] | name | Name or formatting of name |
| [out] | names | If uses formating: Firstname, Alias and Surname (Alias can be an empty string) |
Implements SCR_NameTagData.
|
protected |
Init default tag data.
Implements SCR_NameTagData.
|
protected |
Initial check of active states for JIP /return false if invalid/should be cleaned up.
Implements SCR_NameTagData.
|
protected |
Update main tag (usually driver)
| void SCR_VehicleTagData.UpdatePassenger | ( | SCR_NameTagData | tag, |
| bool | IsEntering, | ||
| bool | isControlledEntity = false ) |
Update current tracked passangers within the vehicle.
| override void SCR_VehicleTagData.UpdateTagPos | ( | ) |
Update tag position.
Implements SCR_NameTagData.
| ref array<SCR_NameTagData> SCR_VehicleTagData.m_aPassengers = {} |
| bool SCR_VehicleTagData.m_bIsControlledPresent = false |
| SCR_NameTagData SCR_VehicleTagData.m_MainTag |