Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 |
class SwitchStationUseableObject extends UseableObject; function bool CanBeUsedBy(Pawn user) { local Character CharacterUser; CharacterUser = Character(user); // can be used if the switched base does not have the same team as the user return (CharacterUser != None) && SwitchStation(Owner).ownerBase.team != CharacterUser.team(); } function UsedBy(Pawn user) { SwitchStation(Owner).useSwitch(user); super.UsedBy(user); } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |