Game Development Community

Adding visibility dynamic field

by Virtual Campus · in General Discussion · 04/06/2004 (3:59 pm) · 5 replies

I want to make a dts object visible or invisible via script any ideas? I thought adding a visibility field to the object, but I need some guidance. Any help would be appreciated.

#1
04/06/2004 (4:26 pm)
You could make an animation and hide the object within it, then call that animation in script. This way you can make it fade too.

That's how I used to do it.
#2
04/07/2004 (4:43 pm)
Couldn't you just expose the alpha level variable so that you could make it partially of fully transparent that way?
#3
04/08/2004 (10:17 am)
That can make it easy for people to cheat. It's usually better not to make variables like that directly available from script.

That sad, there is some cloaking functionality in ShapeBase.
#4
04/08/2004 (12:10 pm)
Yes I saw the setHidden function in Shapebase, but I tried using it to hide a tree dts, but it doesn't work.
#5
04/08/2004 (3:22 pm)
Realm Wars has a cloaking staff for the elf. Maybe that can get you started?