Jump to content

Make an item blink


tagigan

Recommended Posts

What I want to do:

I have 4 of those red XMarkers from the CS on the roof of a house and I would like them to blink on and off if possible.

You can see them in the game if you change the IDName. No collision, No havok.

 

The reason:

FourX is the major brand of beer sold in Queensland Australia. Their symbol is four red x's.

 

Below is a script for the 4x's.

Is it possible to put some type of delay between each state.

eg: set state to 4 (2 sec pause) if state == 4

 

 

scn antXXXXScript

 

short state

short button

 

Begin OnActivate

set state to 1

 

if ( state == 0 )

return

endif

 

if ( state == 1 )

MessageBox "Turn On - Off 4 X sign?","Yes","No"

set state to 2

endif

End

 

Begin GameMode

 

if ( state == 2 )

set button to GetButtonPressed

if ( button == 0 )

set state to 3

elseif ( button == 1 )

set state to 0

endif

endif

 

if ( state == 3 )

xref1.disable

xref2.disable

xref3.disable

xref4.disable

set state to 4

endif

 

if ( state == 4 )

xref1.enable

xref2.enable

xref3.enable

xref4.enable

set state to 3

endif

 

End

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...