Jump to content

ForceField Enable/Diassable Script?


wal2gasm

Recommended Posts

I'm not too savvy with script. I'm trying to set a left and a right force field to deactivate and reactivate to a linked switch.

 

First attempt...created my new Objects, and gave them an editor ID. Set my switch as parent...with this method the on and off sound plays, but the fields stay.

 

Second method...I used this script, it let me disable them, but I couldn't figure out how to tell it to re enable them.

 

 

begin onActivate

 

if do1xflag == 0

set MQ11.FieldsDisabled to ( MQ11.FieldsDisabled + 1 )

set do1xflag to 1

 

if MQ11.FieldsDisabled == 1 ; quest stages for easy tracking

setStage MQ11LD 20

elseif MQ11.fieldsDisabled == 2

setStage MQ11LD 30

elseif MQ11.fieldsDisabled == 3

setStage MQ11LD 40

endif

 

setStage MQ11LD 2 ; this stage EVPs Prime & Friends

 

disable ; and turn myself off

 

endif

end

 

also tried this...

 

ref myLink

 

begin onActivate

 

if myLink == 0

set myLink to getLinkedRef

myLink.enable

set myLink to 1

endif

 

if myLink == 1

set myLink to getLinkedRef

myLink.disable

set myLink to 0

endif

 

activate

 

end

 

 

Any help or if some one has a script that works for them...would be GREATLY appreciated.

 

Thanks.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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