Welcome, Guest Saturday 19th April 2014, 16:09:44
   Home   Help Search Login Register  

OFPEC Forum

Author Topic: A Question on Lighting, and a Bigger Dilemma  (Read 418 times)
0 Members and 1 Guest are viewing this topic.
MajorHurt
*
Offline Offline


« on: 30 Jun 2010, 20:21:37 »

Sorry if this has been addressed elsewhere, but I haven't seen it in my searches:

Is there any way to place a lamp or lantern or some other functioning (and realistic) light source in an added building object, such as WarfareBDepot?

Seems like a simple thing, but I can't seem to locate any info on how to do it, or whether or not it's even possible.

Also, is it even worth it to start pissing about with ArmA editing when ArmA 2 is out?

Any guidance with regard to these questions is greatly appreciated.

Cheers,
MH
Logged
CH
*
Offline Offline


« Reply #1 on: 30 Jun 2010, 22:12:03 »

...is it even worth it to start pissing about with ArmA editing when ArmA 2 is out?
Don't Know

Is there any way to place a lamp or lantern or some other functioning (and realistic) light source in an added building object, such as WarfareBDepot?
Place a road cone (or another object) somewhere on the map and run this code:

Code: (CreateLamp.sqs)
_cone = _this select 0

_lamp = "Land_lampa_ind_b" createVehicle getPos _cone

deleteVehicle _cone

Of course you can choose a different type of lamp if you want to.

PS If you find a way to rotate the lamp model and the light, please let me know  Scratch Chin
« Last Edit: 30 Jun 2010, 22:15:01 by CH » Logged
MajorHurt
*
Offline Offline


« Reply #2 on: 30 Jun 2010, 22:30:43 »

I'll give it a shot. Much appreciated. Smiley

Yeah, I just got started messing about with righteous OFP editing when ArmA came out, now history seems to be repeating itself.  Don't Know
Logged
savedbygrace
Intel Depot
Administrator
*****
Offline Offline


Be swift to hear...slow to speak...slow to wrath.


« Reply #3 on: 30 Jun 2010, 23:30:17 »

The only difference is that OFP is still thriving.
@CH
Can you not use the local variable of the lamp you created to set the direction?
Code:
_lamp setdir 180
Logged
MajorHurt
*
Offline Offline


« Reply #4 on: 01 Jul 2010, 14:16:30 »

Didn't they have table lamps/lanterns in OFP?

Both scripts work, but the street light just looks silly in that depot.

Maybe I don't need it.  Don't Know

Thanks for the help guys.

-MH
Logged
savedbygrace
Intel Depot
Administrator
*****
Offline Offline


Be swift to hear...slow to speak...slow to wrath.


« Reply #5 on: 01 Jul 2010, 15:23:46 »

They do have lights of various types for OFP but they are addons (though small in size). One was called "Real lights", the other comes with the editor Upgrade 103 by Mikero (not sure if the other updates have them). But most house models allow the light to pass through the walls, making it look, as you say, silly.
Logged
CH
*
Offline Offline


« Reply #6 on: 02 Jul 2010, 23:05:19 »

Can you not use the local variable of the lamp you created to set the direction?


* Lamp.jpg (1.99 KB, 153x135 - viewed 73 times.)
Logged
savedbygrace
Intel Depot
Administrator
*****
Offline Offline


Be swift to hear...slow to speak...slow to wrath.


« Reply #7 on: 03 Jul 2010, 04:56:01 »

That's very interesting actually. It works great in OFP (using an editor upgrade as the source), I wonder if the same would happen if created using the BIS directory.
Logged
Pages: [1]   Go Up
  Send this topicPrint  
 
Jump to: