I want to switch the Lightingtemplate and the Imagespace of my cell with a script.
It's easy for "normal" objects when I use the following script:
Scriptname SwitchObjects extends ObjectReferenceObjectReference Property Object1 AutoObjectReference Property Object2 AutoEvent OnActivate (ObjectReference akAktionRef)if (Object1.IsDisabled()) Object1.enable(True) Object2.disable(True)else Object1.disable(True) Object2.enable(True)endifendEvent
But how can I use the script for my Lightingtemplate and Imagespace? Can I use it in a similar way?
Scriptname SwitchObjects extends zzzxxx Property Lightingtemplate1 Autoxxx Property Lightingtemplate2 Autoyyy Property Imagespace1 Autoyyy Property Imagespace2 AutoEvent OnActivate (ObjectReference akAktionRef)if (Lightingtemplate1.IsDisabled()) MyCell.Lightingtemplate1.enable(True) MyCell.Lightingtemplate2.disable(True) MyCell.Imagespace1.enable(True) MyCell.Imagespace2.disable(True)else ...endifendEvent
But what must I write for "xxx", "yyy" and "zzz"? Can I use "Imagespace1.enable(True)" or must there be a definition for the cell like "MyCell.Imagespace1.Enable(True)" or something like that?
I'm very confused

Greetings, mde.