AgeSDL
From Alcugs
Note: Anything extracted from any Plasma Resource Files is property of Cyan Worlds, Inc. You may not use these assets without recieving written permission from Cyan Worlds, Inc.
Please read this Notice from Cyan about Age Creation before continuing.
|
Age SDL
When this get added to the plug-in this Tutorials will be change
NOTE: Make sure you are using a plugin version dated 8/30/06 or later.
NOTE: You will need to add the Age Hook to you age for this to work.
Select the object you want to make conditional and open the logic properties tab (in the Buttons window).
Add the following property:
bool "sdldefault"
Set it to True if you want the object visible by default or false if you do not want it visible by default.
You need to create an SDL file with the info objectnameVis. and put the SDL file in your SDL folder.
EX. Object name = Sphere, visible by default
#==============================================================
# READ: When modifying an SDL record, do *not* modify the
# existing record. You must copy and paste a new version
# below the current one and make your changes there.
#==============================================================
#
# State Description Language for testage
STATEDESC testage
{
VERSION 1
VAR BOOL SphereVis[1] DEFAULT=1 DEFAULTOPTION = VAULT
}
you can now use Python code like this to turn the object on or off
ASDL=PtGetAgeSDL() ASDL['SphereVis']=(1,) #Turn Sphere ON ASDL['SphereVis']=(0,) #Turn Sphere Off
|

