Jump to content
Spatsiba

[CUP Terrains] Open doors w/ script

Recommended Posts

Hey! 

 

I've been trying to make AI run out through a garage port into the street using a CUP building. The only problem is they don't actually open the door and instead use ghost technology to go straight through it.

The building in question is "Land_House_C_10_EP1" found in CUP Terrains Core.

I've tried using scripts that work for vanilla buildings with no success. 

The door I want to open is number 10 in the edit terrain module supplied by BIS in ORANGE dlc (Right garage port if looking at the building from the front). It's worth mentioning that the module manages to open it with animations and all but my attempts to do so through script fail. 

 

If anyone here has experience using CUP I'd appreciate some help. 

Share this post


Link to post
Share on other sites
34 minutes ago, loopdk said:

Use cba modul "Edit x x" and just clik open door

Thanks for the reply!

 

I'm not sure what module you're refering to. Could you link to their documentation? 

Share this post


Link to post
Share on other sites
On 2018-08-12 at 6:54 PM, loopdk said:

At work. Will post screen shot later

You got that screen shot? 

Share this post


Link to post
Share on other sites

I don't know if it's exactly what you want but this worked for me on a cup building:
 

objhouse_1 animate ["Door_1_rot", 1];
objhouse_1 animate ["Door_2_rot", 1];
objhouse_1 setVariable ["BIS_disabled_Door_2", 0, true]; 
objhouse_1 setVariable ["BIS_disabled_Door_1", 0, true];

It opens 2 doors on the building. Now you would have to find ou the number for the door you are trying to open.

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

×