Jump to content
Sign in to follow this  
drunken officer

loop doenst works

Recommended Posts

Hi guys.

I checked the forum and found a example, but i doesnt works.

My problem is, i have light. This one should rotation, as long the player dont stop it. The animation works, but not the loop function.

class CfgSkeletons {
class Default {
isDiscrete = 1;
skeletonInherit = "";
skeletonBones[] = {};
};
class blaulicht_skeleton : Default {
isDiscrete=1;
skeletonInherit="";
skeletonBones[]= {
"reflektor",""
};
};
};

class CfgModels {
class blaulicht {
sectionsInherit="";
sections[]= {};
skeletonName="blaulicht_skeleton";
};
class blue_light : blaulicht {
sectionsInherit="blaulicht";
sections[]={};
class Animations {
class move_reflektor : blaulicht  {
type="rotationY"; 
selection="reflektor";
axis="reflektor_achse"; 
memory=1;
[b]sourceAddress="loop";[/b]
minValue=0;
maxValue=1;
angle0=0;
angle1="rad -360";
};
};
};
};

class AnimationSources {

class move_reflektor {
scope = 2;
source="user";
animPeriod = 1.5; 
initPhase = 0; 
};
};

class move_reflektor{
scope = 2;
displayName="$STR_lichtan";
onlyforplayer = true;
position="reflektor";
radius=4; 
condition="this animationPhase ""move_reflektor"" < 0.5";
statement="this animate [""move_reflektor"", 1]'";

3. questions

1. where is my mistake, that the loop function doesnt works?

2. can somebody tell my, how the command is to stop the animation?

3. i need a alarm sound to this animation. Same way like the reflektor?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×