Jump to content

Photo

Scripting a Strobe Light to a Button

scripting script help alarm

  • Please log in to reply
2 replies to this topic

#1
TheDrunkenSoviet

TheDrunkenSoviet

    Enthusiast

  • Supporter
  • PipPip
  • 148 posts

I'm wanting to add a sort of a general alarm in a mod of mine, 

I want to link several strobe lights to a series of buttons, when anyone of these buttons is activated, these strobe lights and an audible alarm will sound. When another of these buttons is pressed it will reset. 

I've tried several play.animation via a GetState script but i just cannot get this strobe to work. 

 

Anyone have any ideas or point me in the direction of a script that would work ? 

Thanks ! 

 



#2
pepperman35

pepperman35

    Enthusiast

  • Members
  • PipPip
  • 195 posts

you might give the following a try

 

myStobeLight.PlayAnimation("Stage2")



#3
TheDrunkenSoviet

TheDrunkenSoviet

    Enthusiast

  • Supporter
  • PipPip
  • 148 posts

Tried this, the strobe light itself only has the one "flash" within "Stage2", getting it to repeat is a nightmare !







Also tagged with one or more of these keywords: scripting, script, help, alarm

Page loaded in: 1.110 seconds