Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
previous class next class | frames no frames

# Gameplay.SwitchStationUseableObject

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

Class file time: ne 5.9.2004 15:53:24.000 - Creation time: st 23.5.2018 00:10:47.481 - Created with UnCodeX