Jump to content

Activate FF script


pegasus1820

Recommended Posts

ok get scripting for dummies first

 

then make a unique static with its own name that shall be the force field

 

then make an activator that will be the (switch)

 

you will need a state case detecting weather or not the field is on but this can be stored easaly in the loacal script if you start the game in default position for it

 

 

now

 

 

begin psudo_script

short state

if (state < 1)
set state to 1
endif

if (onactivate == 1)
if (state == 2)
 set state to 1
 disable 'forcefield_ID'
elseif (state == 1)
 set state to 2
 enable 'forcefield_ID'
endif
endif

end

 

check the syntax it has been a long time for me since scripting

 

atatch said script to the activator

 

replace 'forcefield_ID' with your forcefield ID

 

have fun

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...