Page 1 of 1

Page Refs in Alcscript?

PostPosted: Sun Nov 23, 2008 2:52 pm
by Race
Hi all, I am trying to add a footprint decal to the groundplane but I am doing it on a different page, is this possible? I have my script set correctly, my footprint plane uvmapped and assigned to the chosen page number but I am not seeing the footprint in the age? Do I need to also reference the page number in the alcscript, and if so how would I set this up? Can anyone help me with this? Thank you :)

Re: Page Refs in Alcscript?

PostPosted: Sun Nov 23, 2008 3:57 pm
by D'Lanor
The information you are looking for can be found here.

Re: Page Refs in Alcscript?

PostPosted: Sun Nov 23, 2008 5:39 pm
by Race
That looks like a pretty scary piece of script to me :shock: Would you be able to show me a sample script of what I want to do and how it would look all together, if I can see it laid out then I will be able to better understand and get the hang of it. Thats the best way for me to learn. A pretend footprint plane added to a mesh on a different page sample script would be helpful. I can then fill in my own values. Thanks for the response D'Lanor, much appreciated.

Re: Page Refs in Alcscript?

PostPosted: Mon Nov 24, 2008 9:29 am
by D'Lanor
This is the example from the Footstep Decals wiki.

Code: Select all
<object name>:
    logic:
        actions:
          - type: footmgr
            footmgr:
                matpreshade: <material ref>
                matrtshade: <material ref>
                lifespan: 20
                targets:
                  - <object name>
                  - <object name>


And here is my footprint example from Prad. If I wanted to make the footprints appear on object Terrain03 on another page called mainRoom I would reference Terrain03 like this:

Code: Select all
FootDecal:
    logic:
        actions:
          - type: footmgr
            footmgr:
                matpreshade: MatFoot
                matrtshade: MatFoot
                wetlength: 6.0
                decaystart: 0.75
                lifespan: 12.0
                targets:
                  - scnobj:Terrain03@mainRoom


Whether this works or not I have no idea since I never had to do something like this.

Re: Page Refs in Alcscript?

PostPosted: Mon Nov 24, 2008 12:29 pm
by Race
I will give that a shot, it has to be doable somehow, with all the talent here I know we will nail it. Thanks again for the help D'Lanor.