I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX
User:Jrubzjeknf/TeamSpecificActors/TeamSpecificWeaponLocker
Object >> Actor >> Pickup >> WeaponLocker >> TeamSpecificWeaponLocker (custom) |
- Package:
- TeamSpecificActors_v2
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. |
Players are treated differently based on what team they're on. While players of one team can use the WeaponLocker, players on the other team can't. The green light has been replaced with a red or blue light, indicating the color of the team to which it belongs. When players of the opposing team try to use this locker, it won't give the player inventory. Additionally, it can play a sound and/or give a message in a specific color.
Full documentation on TeamSpecificActors_v2.u can be downloaded from: http://unrealized-potential.com/forum/index.php?act=Attach&type=post&id=5135
Properties
Property group 'TeamSpecificWeaponLocker'
bAssignToClosestObjective
Type: bool
BelongsToTeam
Type: int
To what team this Teleporter belongs
bSwitchColorOnReset
Type: bool
If the color should change on reset
Default value: True
DeniedMessage
Type: string
Dynamic Message sent to players of the wrong team
DeniedMessageColor
Type: Object.Color
Color of the message for players of the wrong team
Default value:
Member | Value |
---|---|
A | 255 |
DeniedMessageLifetime
Type: int
How long the message should be on the player's screen
Default value: 1
DeniedSound
Type: Sound
Sound for players of the wrong team
Internal variables
bChangeOnNextReset
Type: bool
hack for Assault resetting the first round
bIsASorONS
Type: bool
if true, change teams
bIsASPractiseRound
Type: bool
do nothing when the next reset is actually the start of the match
Default value: True
ClosestObjective
Type: GameObjective
used to assign teamnum by objective
CurrentMessage
Type: string
Real Message
ReplicationCounter
Type: int
Default values
Property | Value |
---|---|
bNetNotify | True |
Functions
Events
PostBeginPlay
Overrides: Actor.PostBeginPlay
PostNetBeginPlay
Overrides: WeaponLocker.PostNetBeginPlay
PostNetReceive
Overrides: Actor.PostNetReceive
Tick
Overrides: Actor.Tick
Other instance functions
GetClosestObjective
HasCustomer
Overrides: WeaponLocker.HasCustomer
Reset
Overrides: WeaponLocker.Reset
States
LockerPickup
Inherits from: WeaponLocker.LockerPickup
Modifiers: auto
LockerPickup.ValidTouch
Overrides: WeaponLocker.ValidTouch