Page 1 of 1

Footsteps tutorial

PostPosted: Mon Jan 21, 2008 1:22 pm
by andylegate
Okay, another question here:

You have a Footstep sound region tutorial. Great!

In the tutorial, y'all have people add a footstep region by going Script>PyPRP>Add a Footstep Sound Region. Great!

Then you have them go and add some scripting to the Alcscript file like this:

Code: Select all
footstep1:
     region:
          type: footstep
          surface: hardwood


er.....uhm....so, okay kinda great.

But if you simply click on the Logic's property button, you already have those properties to your region. You simply have to change the surface to what you want.

But there is no mention of the logic properties in the Wiki tutorial......... :?:

Re: Footsteps tutorial

PostPosted: Mon Jan 21, 2008 1:51 pm
by Kato
Well...

1) You can do it either way. I don't think Marcello knew that adding footstep regions, by default, sets the logic properties.
2) You can contribute to the Wiki too! Login with your forum account and password to make changes.

:)

-Kato

Re: Footsteps tutorial

PostPosted: Thu Jan 24, 2008 4:58 am
by Marcello
Hi all, I did notice later on. I noticed since somehow AlcScript was overruled by the logic properties. I must admit that I thought the point of AlcScript (partly) would be that we didn't have to bother with the logic properties again.

Personally I reset the logic properties and do everything by AlcScript, just to make sure stuff is in one place.

Re: Footsteps tutorial

PostPosted: Thu Jan 24, 2008 8:47 am
by andylegate
That would work I guess, and I can understand that. Personally right now, I leave the alcscript for things that can only be done that way. But I guess it's not a bad habit to get into.

Re: Footsteps tutorial

PostPosted: Thu Jan 24, 2008 11:55 am
by Nadnerb
I consider using logic properties embedded in the objects more robust than alcscript. What if you change the name of the object? Or duplicate the object? (Which changes the name)

I still use alcscript only where necessary, and yes, text props do override alcscript.

Re: Footsteps tutorial

PostPosted: Thu Jan 24, 2008 1:41 pm
by Chacal
It is generally a good idea to always specify values for all settings even though they're supposed to be assigned default values by the software. It protects you from unanticipated behavior changes in later versions of the software.

We use this as a best practice in the application security field, but it makes sense everywhere else too.