Jump to content
Sign in to follow this  
Auss

door animation issues

Recommended Posts

Hey all, I'm having a problem with 2 doors  that I'm wanting to animate, I've used a door model from the arma 2 unbinarised pack and have managed to animate it to open and close fine, all the lods work and shadows etc, It works great in the editor but as soon as I add it to my island then binarize the island, the doors stop working, I dont get the open door user action. I'm using Mikeros pbo project, I've declared the config in the pbo project setup. can someone see what I'm doing wrong.

 

 

 

config.cpp

 

http://pastebin.com/RFabLg8p

 

 

model.cfg
 

Share this post


Link to post
Share on other sites

problem solved class name was wrong :)

Share this post


Link to post
Share on other sites

Sup m8's i have a little trouble here and i need ur help.
I decided to implement the ability 2 open and close da door (lock unlock), but not 2 BIS houses, this feature is implemented using with variable "bis_disabled_Door_1, but unfortunately, this variable work apparently only with BIS houses.
K i decided 2 do differently in the cfg file, do check on UserAction, that if the house is closed, do not show UserAction "Scroll menu".
class open_door_1 { 
displayName = "Open Door"; 
position = "Interact1"; 
radius = 1; 
onlyForplayer = "true"; 
condition = "((this animationPhase 'Door_1') < 0.5) && (this getVariable 'tc_house_unlock')"; 
statement = "this animate ["Door_1", 1]"; 
};
this getVariable 'tc_house_unlock'
K, u see this now, but unfortunately the cfg generates an error when i add the second condition, a possible reason that "this" here is the door, not the house.
Guys i ask ur help, why this error is appears and there are options whether to remove she?
P.s - sorry 4 my bad eng.

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  

×