class TestScript extends Actor Placeable var float deltaAngle function

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class TestScript extends Actor Placeable;
var() float deltaAngle;
function Tick(float deltaTime)
{
local Vector newLoc;
super.Tick(deltaTime);
newLoc = Location;
newLoc.X = Cos(deltaAngle) * Location.X - Sin(deltaAngle) * Location.Y;
newLoc.Y = Sin(deltaAngle) * Location.X + Cos(deltaAngle) * Location.Y;
SetLocation(newLoc);
}
DefaultProperties
{
Begin Object Class=StaticMeshComponent Name=RotatingSprite
RotatingSprite = StaticMesh'GenericGrounds2.SM.fern'
HiddenGame = false
End Object
Components.Add(RotatingSprite)
}