Home   Help Search Login Register  

Author Topic: Searchlight  (Read 1610 times)

0 Members and 1 Guest are viewing this topic.

Offline snoopy22

  • Members
  • *
Searchlight
« on: 26 Nov 2007, 04:32:35 »
How do you turn on a static searchlight that is empty.  Ive been trying to get this light to turn on all night X_x.  Ive checked the lightison command and it didnt work, engineon didnt work...Anyone help? thanks :)

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Searchlight
« Reply #1 on: 26 Nov 2007, 07:40:37 »
Put a game logic as a gunner in the Searchlight

Code: [Select]
gamelogicname moveInGunner searchlightname
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline snoopy22

  • Members
  • *
Re: Searchlight
« Reply #2 on: 26 Nov 2007, 08:11:00 »
sorry, how do u put a gamelogic as a gunner ?  I placed a game logic unit, and was going to make a waypoint for it to go into the searchlight but I only saw "and/or" as options =/

- ah wait my bad I got it lol Thank you :P


#EDIT-removed the unnecessary quote    h-
« Last Edit: 26 Nov 2007, 09:13:45 by h- »

Offline Falcon 1

  • Members
  • *
  • VlamGat
    • Bush War Mod
Re: Searchlight
« Reply #3 on: 26 Nov 2007, 08:17:00 »
Hi there.

I'm new here and a total Noob when it comes to scripting.  :dunno:

I'm sitting with the exact same problem as snoopy22 and have tried scripts like: this Inflame true & switchlight "On" , but have had no luck so far...

I can't get "gamelogicname moveInGunner searchlightname" to work either and I've tried swapping the "searchlightname" with a name like S1 and naming the searchlight S1...

Like I said this is my first attempt at scripting and your help would really be appreciated. Although it would have to be as detailed as possible. lol  :P


Edit: FINALLY figured it out!  :good:

Description: You place a GameLogic ( found under items ) on the map next to your searchlight and name it for example: GL1 ...Then you name your searchlight for example: S1 ...You then type the following in the description section of your GameLogic: GL1 moveInGunner S1 ( that's what the "gamelogicname moveInGunner searchlightname means ) ---> And Presto! You have a bright nice shiny searchlight!  :D

Thanx for the help h- !!!

Now all I need to figure out is how to have an AI pilot switch a chopper's lights on when flying at night...  ??? ( You can switch on the lights manually when you are the pilot )
« Last Edit: 26 Nov 2007, 08:58:51 by Falcon 1 »

Offline Davies1

  • Members
  • *
  • Bugger this for a game of soldiers!
Re: Searchlight
« Reply #4 on: 26 Nov 2007, 09:03:08 »
set the behaviour of the chopper/pilot to "safe" or "careless"

this setbehaviour "safe"    -  in the init field of the unit. using "careless" may work better
Beer is the fuel for the Heavy Metal Engine.

Offline Falcon 1

  • Members
  • *
  • VlamGat
    • Bush War Mod
Re: Searchlight
« Reply #5 on: 26 Nov 2007, 09:44:47 »
AWESOME!!  :good:

Thanks Guys! Both problems fixed in one night...

This will really come in handy in the future  :D

OFPEC and it's members ROCK!  :good:

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: Searchlight
« Reply #6 on: 26 Nov 2007, 13:35:53 »
yup we do ;)  :cool2:

also

WELCOME 2 OFPEC M8S

and have fun navigatin da sewers of editin :D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta