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 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 |
//============================================================================= // Piper spawner location. //============================================================================= class KNActorFactory extends Actor placeable; var(Factory) int Count; var(Factory) vector Range; var(Factory) class<KNActor> KNActorClass; function PostNetBeginPlay() { local int i; local vector v; local rotator r; local KNActor myActor; for (i=0;i<Count;i++) { v.X = RandRange(-Range.X,Range.X); v.Y = RandRange(-Range.Y,Range.Y); v.Z = RandRange(0,Range.Z)+20; r.Pitch=0; r.Yaw=RandRange(0,65535); r.Roll=0; myActor = spawn(KNActorClass, , , Location+v, Rotation+r); } } defaultproperties { bHidden=True bNoDelete=True RemoteRole=ROLE_None Texture=Texture'Engine.S_KVehFact' Count=10 Range=(X=200,Y=200,Z=20) KNActorClass=class'USARBot.KNBrick' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |