OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Scratchdat on 03 Sep 2002, 17:08:56

Title: Buildings, Lights And Fires
Post by: Scratchdat on 03 Sep 2002, 17:08:56
2 questions:

How can I place an aircraft hanger on my map?

How can I light fires and streetlamps?
Title: Re:Buildings, Lights And Fires
Post by: DeadMeatXM2 on 03 Sep 2002, 17:29:09
To place an a/c hangar you need either Kegetys Editor Addon, or Gunslingers Editor Addon, this makes them available to you in the normal editor interface.

To light fires and streetlamps, you need to put this line of code in the units init line (Editor must be in advanced mode top right click on easy):

this inflame true

there you go.
Title: Re:Buildings, Lights And Fires
Post by: icarus_uk on 03 Sep 2002, 22:27:13
Alternatively to using addons you can alter the .sqm file so the game thinks another object is infact a hangar.  Its documented on the site, (when it comes back later tonight).
Title: Re:Buildings, Lights And Fires
Post by: Tomb on 04 Sep 2002, 01:08:16
Quote
The default streetlamps will easily shine if ....

1. it is dark ( ::) ), or ...

2. You have the RES-upgrade & are able to type this in a trigger :

Quote

In the editor, click the "show ID" button and find your streetlamp
(you may need to zoom in quite close for the ID's to show up).
Take down it's number, and use a line like this:
 
(object 37317) switchlight "on"
 
...to turn it on and "off" to turn it off
and "auto" to set it to default (on during night, off during day).



 :o If ya don't have RES, use this method :

Place a gamelogic next to the lamp with the init field spell :  
 
nearestobject [this, "streetlamp"] switchlight "on"  :-*

Should do it, m8

---------------------------------

*what the bell is wrong with the quote tonite?!
..... must be them backstage men running around setting up the
coloured lamps for the big site launch!!!!*  ::) ;D

Title: Re:Buildings, Lights And Fires
Post by: Ronin on 10 Sep 2002, 05:02:20
Hi All,
I've been having trouble with this too.
I've placed some streetlamps in a base I made, so they don't have an ID when I click showID.
However, i've got the lamp to shine using the switchlight command.  
The only problem is that the light appears halfway down the streetlamp, and it doesn't illuminate the surrounding area.

Anyone have any thoughts?
Thanks,
Ronin