Home   Help Search Login Register  

Author Topic: Scripting for Generator Building  (Read 445 times)

0 Members and 1 Guest are viewing this topic.

Offline Taggart

  • Members
  • *
Scripting for Generator Building
« on: 28 Dec 2004, 09:29:25 »
The AGS buildings addon includes a switchable generator building. I wish to use this to switch the lights on/off in a town. Does anyone know how to script it to detect the lever position  ???
Tried in vain got an artery

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Re:Scripting for Generator Building
« Reply #1 on: 28 Dec 2004, 10:17:01 »
I managed it along time ago, but  can't really remember how.  :-\

I think I used a Game Logic. There was a option 'activate AGS lights' and 'disable AGS lights' there. Try that. But then again, I may be thinking of the Bracken addons...
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Scripting for Generator Building
« Reply #2 on: 28 Dec 2004, 12:54:25 »
Check the addon's readme... there should be the name of the animation for the lever. In that case, just check the animation phase of that anim. Ugh, I'm tired now, but check the online com ref for the "animation phase" command, you'll get some examples.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!