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 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 |
class SpawnArrayUseableObject extends BaseDeviceAccess; // // Called to check if the UseableObject can be used // by a specific actor. // function bool CanBeUsedBy(Pawn user) { if(user.IsA('Character')) { if (user.FastTrace(user.Location, Owner.Location)) return SpawnArray(Owner).team() != None && SpawnArray(Owner).isFriendly(Character(user)) && SpawnArray(Owner).isFunctional(); } return false; } function UsedBy(Pawn user) { super.UsedBy(user); if (!CanBeUsedBy(user)) return; SpawnArray(Owner).use(user); } defaultproperties { prompt = "Press '%1' to access the Spawn Array" markerOffset = (X=0,Y=0,Z=20) } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |