- Messages
- 1,964
- Country

Hello there.
I'd like to have some polys have the day/night and dusk/dawn parameters attached to them. I have the respective scripts for multiple attach effects, however lack the coding knowledge to be able to transfer this to this task.
Any help would be greatly appreciated.
I see from the attach multiple boxes script:
strAttachNumber = 0
for obj in $x* do
(
obj.name = ("light_day_night" + (strAttachNumber as
string))
strBufferText = ("FSXML = <?xml version=\"1.0\"
encoding=\"ISO-8859-1\" ?> <FSMakeMdlData
version=\"9.0\"><Attachpoint name=\"attachpt_whitelight" +
(strAttachNumber as string) + "\"> <AttachedObject> <Effect
effectName=\"FSSE exeter white steady\" effectParams=\"DAY=0;NIGHT=1\"/>
</AttachedObject> </Attachpoint></FSMakeMdlData>")
setUserPropBuffer obj strBufferText
strAttachNumber += 1
)
The parameters are part of the effects... do I need to create my polygons as effects and just use this?... Id rather not as I wish to apply this to some ground polys.
I'd like to have some polys have the day/night and dusk/dawn parameters attached to them. I have the respective scripts for multiple attach effects, however lack the coding knowledge to be able to transfer this to this task.
Any help would be greatly appreciated.
I see from the attach multiple boxes script:
strAttachNumber = 0
for obj in $x* do
(
obj.name = ("light_day_night" + (strAttachNumber as
string))
strBufferText = ("FSXML = <?xml version=\"1.0\"
encoding=\"ISO-8859-1\" ?> <FSMakeMdlData
version=\"9.0\"><Attachpoint name=\"attachpt_whitelight" +
(strAttachNumber as string) + "\"> <AttachedObject> <Effect
effectName=\"FSSE exeter white steady\" effectParams=\"DAY=0;NIGHT=1\"/>
</AttachedObject> </Attachpoint></FSMakeMdlData>")
setUserPropBuffer obj strBufferText
strAttachNumber += 1
)
The parameters are part of the effects... do I need to create my polygons as effects and just use this?... Id rather not as I wish to apply this to some ground polys.