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 00043 00044 00045 00046 00047 |
/** * Version of KActor that can be dynamically spawned and destroyed during gameplay * * Copyright 1998-2008 Epic Games, Inc. All Rights Reserved. **/ class KActorSpawnable extends KActor native(Physics) notplaceable; simulated function Initialize() { SetHidden(FALSE); StaticMeshComponent.SetHidden(FALSE); SetPhysics(PHYS_RigidBody); SetCollision(true, false); } simulated function Recycle() { SetHidden(TRUE); StaticMeshComponent.SetHidden(TRUE); SetPhysics(PHYS_None); SetCollision(false, false); ClearTimer('Recycle'); } /** Used when the actor is pulled from a cache for use. */ native function ResetComponents(); defaultproperties { Begin Object Class=StaticMeshComponent Name=StaticMeshComponent0 ObjName=StaticMeshComponent0 Archetype=StaticMeshComponent'Engine.Default__KActor:StaticMeshComponent0' ObjectArchetype=StaticMeshComponent'Engine.Default__KActor:StaticMeshComponent0' End Object StaticMeshComponent=StaticMeshComponent0 Begin Object Class=DynamicLightEnvironmentComponent Name=MyLightEnvironment ObjName=MyLightEnvironment Archetype=DynamicLightEnvironmentComponent'Engine.Default__KActor:MyLightEnvironment' ObjectArchetype=DynamicLightEnvironmentComponent'Engine.Default__KActor:MyLightEnvironment' End Object LightEnvironment=MyLightEnvironment Components(0)=MyLightEnvironment Components(1)=StaticMeshComponent0 bNoDelete=False CollisionComponent=StaticMeshComponent0 Name="Default__KActorSpawnable" ObjectArchetype=KActor'Engine.Default__KActor' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |