OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bedges on 20 Aug 2005, 22:29:17

Title: hut door name...
Post by: bedges on 20 Aug 2005, 22:29:17
i see the model is called "KEGres_Dum04", the white hut with slanting roof and two doors. i'm trying to find the names of the doors for an animation, but can't even locate the model in the data3d.pbo...

(http://www.tumeric.co.uk/mrb/flashpoint/hut.jpg)

any ideas?

Title: Re:hut door name...
Post by: Planck on 20 Aug 2005, 22:38:55
Ahhh.....yes

model="\O\Hous\Hlidac_budka";


Code: [Select]
class UserActions
{
   class OpenDoors1
   {
      displayName="$STR_DN_OUT_O_DOOR";
      position="osa_dvere1";
      radius=2.500000;
      condition="this animationPhase ""Dvere1"" < 0.5";
      statement="this animate [""Dvere1"", 1]";
   };
   class CloseDoors1
   {
      displayName="$STR_DN_OUT_C_DOOR";
      position="osa_dvere1";
      radius=2.500000;
      condition="this animationPhase ""Dvere1"" >= 0.5";
      statement="this animate [""Dvere1"", 0]";
   };
   class OpenDoors2
   {
      displayName="$STR_DN_OUT_O_DOOR";
      position="osa_dvere2";
      radius=2.500000;
      condition="this animationPhase ""Dvere2"" < 0.5";
      statement="this animate [""Dvere2"", 1]";
   };
   class CloseDoors2
   {
      displayName="$STR_DN_OUT_C_DOOR";
      position="osa_dvere2";
      radius=2.500000;
      condition="this animationPhase ""Dvere2"" >= 0.5";
      statement="this animate [""Dvere2"", 0]";
   };


Is that what you wanted?


Planck
Title: Re:hut door name...
Post by: bedges on 20 Aug 2005, 22:54:08
a picture tells a story of a thousand words...

(http://www.tumeric.co.uk/mrb/flashpoint/hut2.jpg)

that's another pint i'm due ye...  8)
Title: Re:hut door name...
Post by: Planck on 20 Aug 2005, 22:58:29
 8)


Planck