Jump to content
Sign in to follow this  
natanbrody

UserActions onlyForPlayers?? Help!

Recommended Posts

Ok guys here is the issue I have made a nice little config with some animations and now when trying to preview the building in the editor I get a window saying that UserAction onlyForPlayers or something like that here is my config: #define TEast 0

#define TWest 1

#define TGuerrila 2

#define TCivilian 3

#define TSideUnknown 4

#define TEnemy 5

#define TFriendly 6

#define TLogic 7

#define true 1

#define false 0

#define private 0

#define protected 1

#define public 2

class CfgPatches {

class IDFTironut {

units[] = {};

weapons[] = {};

requiredAddons[] = {};

};

};

class CfgFactionClasses

{

class Empty

{

displayName = "Empty";

priority = 0;

side = 1;

};

};

class CfgVehicles {

class Static;

class FiringRange : Static {

scope = 2;

model = "\IDFTironut\Objects\Ranges\FiringRange15x6m.p3d";

displayName = "Firing Range 1 15x6m";

faction = "Empty";

vehicleClass = "IDF Tironut";

};

class FiringTarget25m : Static {

scope = 2;

model = "\IDFTironut\Objects\Ranges\FiringTarget25m.p3d";

displayName = "Firing Target 25m";

faction = "Empty";

vehicleClass = "IDF Tironut";

};

class SmallMOUTBuilding1 : Static {

scope = 2;

model = "\IDFTironut\Objects\MOUT\SmallMOUTBuilding1.p3d";

displayName = "Small MOUT Compound 1";

faction = "Empty";

vehicleClass = "IDF Tironut";

animated=1;

class Animations

{

class ani_Door1

{

type="rotation";

animPeriod=2;

selection="Door1";

axis="Door1_axis";

angle0=0;

angle1=1;

};

class ani_Door2

{

type="rotation";

animPeriod=2;

selection="Door2";

axis="Door2_axis";

angle0=0;

angle1=1;

};

};

class UserActions

{

class OpenDoor1

{

displayName="Open Door";

position="pos_Door1";

radius=2.000000;

condition="this animationPhase ""ani_Door1"" >= 0.5";

statement="this animate [""ani_Door1"",1]";

};

class CloseDoor1

{

displayName="Close Door";

position="pos_Door1";

radius=2.000000;

condition="this animationPhase ""ani_Door1"" < 0.5";

statement="this animate [""ani_Door1"",0]";

};

class OpenDoor2

{

displayName="Open Door";

position="pos_Door2";

radius=2.000000;

condition="this animationPhase ""ani_Door2"" >= 0.5";

statement="this animate [""ani_Door2"",1]";

};

class CloseDoor2

{

displayName="Close Door";

position="pos_Door2";

radius=2.000000;

condition="this animationPhase ""ani_Door2"" < 0.5";

statement="this animate [""ani_Door2"",0]";

};

};

};

};

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  

×