Home   Help Search Login Register  

Author Topic: Searchlight on Vehicles  (Read 1814 times)

0 Members and 1 Guest are viewing this topic.

Jtec

  • Guest
Searchlight on Vehicles
« on: 04 Nov 2005, 13:57:55 »
HI there, Im currently making a Samaritan and need to know if it is posible to have the searchlight on the commanders cupola rotate when the cupola rotates?

Also is it possible to have the light come on when the main headlights are off?  Say a option only for the commander to switch the searchlight on.

Offline remcen

  • Contributing Member
  • **
  • a.k.a. hottentotten_mike
    • IM:UC
Re:Searchlight on Vehicles
« Reply #1 on: 04 Nov 2005, 17:29:39 »
AFAIK it's not possible. a light cone will only move with the hull, never with the turret, even if the light(cone) is part of the otochlaven selection. i remember someone having tried it without success. the same should apply for the hatch selection which again is part of the otochlaven selection.

i think the game engine simply cannot handle it. remember that the light cone of the standard static m2 does not rotate with the gun, too.

a secondary turret script would solve that but that seems far away; maybe ArmA will solve it, maybe we have to wait until thegameformallyknownasofp2 :/
we're looking for members: IM:UC MOD

Jtec

  • Guest
Re:Searchlight on Vehicles
« Reply #2 on: 04 Nov 2005, 18:07:34 »
Doh..... ok thanks very much for your reply.  Guess i can either make the cuploa static with the light working or just have the light with a out of order sign on it :(

Offline remcen

  • Contributing Member
  • **
  • a.k.a. hottentotten_mike
    • IM:UC
Re:Searchlight on Vehicles
« Reply #3 on: 04 Nov 2005, 18:32:55 »
wouldn't it be a (rather crappy i admit) solution to make a cover for the searchlight?
like the t-55 on this pic: http://www.tanxheaven.com/t55-1964/t-55_1964-006.jpg
we're looking for members: IM:UC MOD

Offline RujiK

  • Members
  • *
  • KoKo Puh-Fizzles!
Re:Searchlight on Vehicles
« Reply #4 on: 05 Nov 2005, 05:29:08 »
I don't know if this is possible for I have never made an addon, but could you make a seperate and very small vehicle INSIDE the turret and just setdir the dummy vehicle so it's light shines wherever the turret is facing?
I like your approach, lets see your departure.
Download the New Flashlight Script!

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Searchlight on Vehicles
« Reply #5 on: 05 Nov 2005, 07:34:01 »
You could, but you can't set the pitch or the bank of an object...

Although, you could 'fix' this by having a script checking the bank and pitch of the vehicle (this is possible) and then animate the light object accordingly...
The light object would of course have rotation anims defined...

But I think you can have only one of those rotation anims per model??
That would then limit things to either banking or pitching...
« Last Edit: 05 Nov 2005, 07:34:28 by HateR_Kint »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.