OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Killzone on 24 Sep 2003, 21:08:00

Title: Tent names
Post by: Killzone on 24 Sep 2003, 21:08:00
Hello.

Does anyone know the name the game uses for the tents on the west side? I checked the editors depot and it seems to have everything but the tents.

Thanks for the help ;D
Title: Re:Tent names
Post by: dmakatra on 24 Sep 2003, 21:52:44
Try this:

hint format ["%1",typeof Tent]

Where Tent is the name of the tent.

:beat: *Gets Shot* :beat:
Title: Re:Tent names
Post by: Killzone on 24 Sep 2003, 22:33:46
Hi

Thanks for the reply. However I dont understand how to use this info you have given me. I put this line into a trigger and then tried it in the Init line of a tent and both times it said" Unknown operator tent. Could you explain further?

Thanks for the help ;D
Title: Re:Tent names
Post by: Tomb on 24 Sep 2003, 23:06:41
hey matey!

maybe YOU should do a lil' explaining too  :D :o :) WEST tent?

as far as I know, the tents from the "OBJECTS" menu are all sided to EMPTY (civilian, sort of).

Are ya trying to "CreateVehicle" a tent or what?  ???

Anyho'  the CLASS_NAMES which the game engine uses are these:

  "Camp"

  "CampEmpty"

  "CampEast"

  "CampEastC"

 and "MASH" (the medic tent).

 And to use these names, make a trigger with this code:

                         MyTent = "CampEmpty" camCreate getpos T1

 (where T1 is the NAME of your trigger - name it in the triggers "name" field - or the name of a gameLogic)


hope this helps ?!
Title: Re:Tent names
Post by: Chris Death on 25 Sep 2003, 00:41:50
The only tents being side-specific, are the ones from
editor-upgrade (or editor-update).

If you want to figure out their names, then best you
can do is:

place those objects on the map, save the map, open
mission.sqm with notepad and scroll down, until you find
'em.

:note - if you would even give them a name in the editor,
it might help ya speed up your scrolldown-search in the
mission.sqm.

Once you found them, you should see something like that:

Code: [Select]
         side="EAST";
         class Vehicles
         {
            items=1;
            class Item0
            {
               position[]={9723.226563,29.834999,3927.928955};
               id=1;
               side="EAST";
               vehicle="GAX180";
               leader=1;
               skill=0.600000;
            };
         };
      };
   };

Where: GAX180 is the name of this EAST mash tent,
while GAA180 would be the WEST mash tent.

All other names you need i'd suggest you to do it yourself,
'cause i don't wanna do all that "funky easy dirty work".

~S~ CD
Title: Re:Tent names
Post by: Killzone on 25 Sep 2003, 00:46:04
Thanks for the help. I got it working using the class names

 ;D ;D