Home   Help Search Login Register  

Author Topic: Objects List Required !  (Read 566 times)

0 Members and 1 Guest are viewing this topic.

Offline Roni

  • Members
  • *
  • Play the Game !
Objects List Required !
« on: 18 Oct 2003, 04:06:38 »
Hello All

Can anyone help ?  I am working on a script that allows players to build a camp.  When run the script will run a player animation, play a sound then create a Tent object (if outdoors) or a Cot object (if indoors).

The Tent (or Cot) will have an associated addAction "Build Fire" which will allow the player to create a Fire object.  Staying next to the Fire for a brief period will heal all of the player's damage, staying in the Tent or Cot all night will avoid the player taking any special night time damage that I have scripted.   ;D

The problem is that I don't know the object names for the Tent, Cot or Fire objects.  And it ain't "Tent" - that just causes OFP to crash to desktop.   :'(

I've searched high and low, in the tutes, the references, the FAQ's and the forums but I still haven't been able to find a comprehensive objects list.  Does one exist ?   ???

I've seen the Weapons and Ammo list but that doesn't have civilians or objects (natch !).  Does anyone have / know where I could find a complete civilians and objects list ?

Any help greatly appreciated !

Cheers



Roni






Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Objects List Required !
« Reply #1 on: 18 Oct 2003, 12:19:41 »
Create a dummy mission.   Place tent, fire, whatever.     Save.     Open up the mission.sqm in Notepad (or whatever) and you'll find the correct names in there.

There is some kind of listing in the unofficial command reference but I'm not sure if it's what you need.
Plenty of reviewed ArmA missions for you to play

Offline Roni

  • Members
  • *
  • Play the Game !
Re:Objects List Required !
« Reply #2 on: 18 Oct 2003, 15:08:33 »
But of course !   :D :D

Thanks mac - now I know why they pay you the big bucks !   ;D

Seriously - I knew it was something dead easy but for the life of me I just couldn't work it out.  A whole day of 'licence to compute" from the wife down the gurgler !

Stand by for a packet of nifty new scripts from yours truly . . .



roni

Knut Erik

  • Guest
Re:Objects List Required !
« Reply #3 on: 18 Oct 2003, 20:20:24 »
To make it REALLY easy, give the objects names  ;)
Like: Tent1, Shed1  and so on!

Then you only need to open the mission.sqm file and search for the word "tent1, Shed1" etc etc  :D

Offline Igor Drukov

  • Contributing Member
  • **
  • Conscientious Subjector
Re:Objects List Required !
« Reply #4 on: 18 Oct 2003, 20:56:33 »
Hey !

Or if you're running OFP 1.90+, you can use the very handy "typeof" command.
While in-game, give the object you want to check a name, create a Radio Alpha trigger in the activation field of which you type :

Code: [Select]
hint format ["%1", typeof myobject]
and here we go, you've got the name of the object.

Ig.

*edit*

Check here.

« Last Edit: 18 Oct 2003, 20:59:33 by Igor Drukov »

Offline Roni

  • Members
  • *
  • Play the Game !
Re:Objects List Required ! - Problem Mutated !
« Reply #5 on: 20 Oct 2003, 01:57:36 »
Thanks all - object list problem solved.  Now I have a new one !
 :P

I now have my animation (from the library, sound (home made) and objects all worked out but now I'm getting problems adding the new abject to the map.  I tried creating the unit as part of the player's group but that just crashed to desk top (it looks as though you can't mix objects and living characters in the same group).

I then tried making a dummy object (another tent, bus etc) and giving it a group name ("moat" - the mother of all tents   ;D  ) but I still couldn't get the new object to appear.

Any ideas ?



Roni