The Land_xx class

From Bohemia Interactive Community
Revision as of 14:44, 6 January 2021 by Lou Montana (talk | contribs) (Text replacement - "\[\[[Cc]ategory:ArmA:[ _]?([^|]+)\]\]" to "{{GameCategory|arma1|$1}}")
Jump to navigation Jump to search


A great deal of angst, frustration and misunderstandings surround would be map makers using animated buildings on their maps.

The very first, and very infamous misunderstanding is that your animated building opens doors when you place it in the game editor, but simply does not work when you bake it into a map (wrp).

For this magic to happen, you must have class land_nameOfP3d and model = NameOfp3d;

It is that simple.

class house_f; // almost always 
class land_my_great_building: house_f
{
    model=\some\location\my_great_building.p3d;
    ..... the rest doesn't matter
};
  • Note that you can have land classes for other p3d class 'types', and they are optional. But if you wish to use the unique and very special properties of class=house, you must have a land_xx to go with it.

It is that simple.


And for these animations to happen at all either in the in-game editor or otherwise, your p3d has to have it is geolod property set to class=house as a minimum. There are other, less used, animation class types, such as 'housesimulated' and 'fuelstation' but you are on pretty firm ground using class=house if you expect doors to open.

It is that simple.



A land_xx trigger list of all objects used on the map that *need* land classes to operate correctly is automatically baked into that wrp by pboProject. (Geolod class=house is the prime candidate, but there are other much less used class= types that pboProject also takes care of.)

if doors (eg) still won't open, then you don't have that land_xx class in any config.cfgVehicles in the game.


Under those circumstances, it is up to you to create one.

See also: Building Land Classes


translations

Übersetzungen - Deutsch

Du sprichst kein Englisch?

Dann schau Dir die Deutsche Übersetzung der land_xx class an --MemphisBelle (talk) 10:46, 12 January 2016 (CET)