Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class LC_Cube extends KActor placeable;
- var StaticMeshComponent StaticMesh;
- simulated function PostBeginPlay()
- {
- super.PostBeginPlay();
- }
- event Bump( Actor Other, PrimitiveComponent OtherComp, Vector HitNormal )
- {
- `Log( "Actor = " @ Other );
- `Log( "PrimitiveComponent = " @ OtherComp );
- `Log( "Vector = " @ HitNormal );
- // make cube pushable
- ApplyImpulse(-HitNormal, 50.0, Other.Location);
- }
- defaultproperties
- {
- Begin Object Name = StaticMeshComponent0
- StaticMesh = StaticMesh'LT_Mech.SM.Mesh.S_LT_Mech_SM_Cratebox02a'
- //BlockActors = true
- //BlockNonZeroExtent = true
- //BlockZeroExtent = true
- //BlockRigidBody = true
- End Object
- StaticMesh = StaticMeshComponent0
- Components.Add(StaticMeshComponent0)
- CollisionType=COLLIDE_BlockAll
- bEdShouldSnap=true // Snap to grid when placing in the editor.
- //bStatic = false // This is a dynamic object.
- //bCollideActors = true // Both of these have to be true to block the player.
- //bBlockActors = true
- //BlockRigidBody = true
- Physics = PHYS_Rigidbody
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement