Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class RotatorActor_101 extends KActor
- placeable;
- //var const editconst DynamicLightEnvironmentComponent LightEnvironment;
- var() float MovementSpeed;
- var() StaticMesh myMesh;
- var() Actor newPos;
- var bool ready;
- event Tick(float DeltaTime)
- {
- ready = false;
- super.Tick(DeltaTime);
- if(newPos.Rotation == self.Rotation )
- {ready = true;}
- SetRotation(RInterpTo(self.Rotation,newPos.Rotation,(DeltaTime*MovementSpeed),90000,true));
- }
- exec function setNextRotatorActor(Actor pos)
- {
- newPos = pos;
- }
- DefaultProperties
- {
- begin object class=StaticMeshComponent Name=BaseMesh
- StaticMesh=StaticMesh'U101_Props.Props.Arrow'
- LightEnvironment=MyLightEnvironment
- end object
- Components.Add(BaseMesh)
- CollisionComponent=BaseMesh
- bCollideActors=false
- bBlockActors=false
- MovementSpeed=1
- }
- //-----------------------------------------------------------
- class RotatorActor_Action_101 extends SequenceAction;
- var() Actor newRotation;
- var() RotatorActor_101 objectToRotate;
- event Activated()
- {
- objectToRotate.setNextRotatorActor(objectToRotate);
- `log("action activated.");
- }
- defaultproperties
- {
- ObjName="SetRotatorActor"
- ObjCategory="Unnamed101"
- //Function to be activated when this action is called.
- // HandlerName = "Activated"
- }
Add Comment
Please, Sign In to add comment