Jump to content
Sign in to follow this  
Cpl. Hicks

opening doors by Init

Recommended Posts

I'm placing the 3WX warehouse 3 in a mission i am making and i want to know if their is a way of having the 3 hanger doors open when it is loading onto the map, so the player doesnt have to.

Share this post


Link to post
Share on other sites

Well, duno this addon, but to animate a building or anything else that is animated, you must put this in their init line :

this animate ["name_of_the_selection",1]

This does animate the part of the model that is animated,

and

this animate ["name_of_the_selection",0]

to come back to normal.

The only prob is that you must know the name of the part of the model that is animated...for building, modders usually use "door", or "door1" and "door2" when there's 2 doors, etc...

I've just found it was one of the AGS warehouse, here is its config :

class f3wx_whouse3: ags_mod3

{

scope=2;

animated=1;

mapSize=5;

model="\ags_inds\f3wx_solowhs.p3d";

displayName="Warehouse 3";

class Animations

{

class Door_whsfront

{

type="rotation";

animPeriod=9.2

selection="aComponent48";

axis="axis_front";

angle0=0

angle1=-1.700000;

};

class Door_whsleft

{

type="rotation";

animPeriod=9.2

selection="aComponent49";

axis="axis_left";

angle0=0

angle1=1.700000;

};

class Door_whsright

{

type="rotation";

animPeriod=9.2

selection="aComponent50";

axis="axis_right";

angle0=0

angle1=-1.700000;

};

class Door_whsback

{

type="rotation";

animPeriod=9.2

selection="aComponent45";

axis="axis_back";

angle0=0

angle1=1.700000;

};

};

So you've got 4 doors : "Door_whsfront", "Door_whsleft", "Door_whsback", "Door_whsback".

So write this in the init line of the warehouse, for opening front door :

this animate ["Door_whsfront", 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  

×