Jump to content
Sign in to follow this  
Sergei_Q

Closing the Cargo Container doors

Recommended Posts

I have inserted a Cargo Container (open) that I want to have closed doors (both sides) at the beginning, how do I accomplish that? Do I extract some PBO and look in the config for... err... something? :confused:

I really have no idea where to start looking.

Edited by Sergei_Q

Share this post


Link to post
Share on other sites

I was just going to ask this. I tried "setting doors open/closed" in the search window and didn't find any posts. I just now typed cargo container in the search window and this is the only post I found. There is also a Hanger 2 building that you can place that has the doors normally closed and I just searched that term and came up with this post:

http://forums.bistudio.com/showthread.php?t=73501&highlight=hanger

I couldn't get that to work on the hangar that I had but it's a start I guess.

Share this post


Link to post
Share on other sites

Does the open cargo container really have animated doors? I believe it's just a static object.

Share this post


Link to post
Share on other sites
Does the open cargo container really have animated doors? I believe it's just a static object.

It does. But I can't even guess what the anim names are. Could be Czech, could be English... only way to know is to check the config.

Edited by Big Dawg KS

Share this post


Link to post
Share on other sites
Try dvere. My check is non-existant but it was used for doors in flashpoint.

Since there are 4 doors, perhaps try dvere1 through dvere4... or does BIS use 0 base for anim names?

Share this post


Link to post
Share on other sites

"this animationPhase ""door_1_1"" >= 0.5";

"this animate [""door_1_1"", 0];this animate [""door_1_2"", 0]";

"this animationPhase ""door_1_1"" < 0.5";

"this animate [""door_1_1"", 1];this animate [""door_1_2"", 1]";

"this animationPhase ""door_2_1"" >= 0.5";

"this animate [""door_2_1"", 0];this animate [""door_2_2"", 0]";

"this animationPhase ""door_2_1"" < 0.5";

"this animate [""door_2_1"", 1];this animate [""door_2_2"", 1]";

According to the config anyway.

Planck

Edited by Planck

Share this post


Link to post
Share on other sites
"this animationPhase ""door_1_1"" >= 0.5";

"this animate [""door_1_1"", 0];this animate [""door_1_2"", 0]";

"this animationPhase ""door_1_1"" < 0.5";

"this animate [""door_1_1"", 1];this animate [""door_1_2"", 1]";

"this animationPhase ""door_2_1"" >= 0.5";

"this animate [""door_2_1"", 0];this animate [""door_2_2"", 0]";

"this animationPhase ""door_2_1"" < 0.5";

"this animate [""door_2_1"", 1];this animate [""door_2_2"", 1]";

According to the config anyway.

Planck

So when I put this in the Init. part of the unit I get a "Type String, expected Nothing" error on the begining of the 2nd line.

Share this post


Link to post
Share on other sites

That code is from the config, so has extra quotes and stuff you don't really need.

To start it with both sides closed, use this in it's init:

this animate ["door_1_1", 1];this animate ["door_1_2", 1]; this animate ["door_2_1", 1];this animate ["door_2_2", 1]; 

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  

×