Can scripts tell what wall set is in use?
Can scripts tell what wall set is in use?
Just wondering if there's a way for my script to know what wall set is in use on a current level. Anyone?
Re: Can scripts tell what wall set is in use?
One method that pops into my mind would be to check for some assets that you only use with that wallset. For example, you could know that you're using the dungeon wallset if a dungeon_stairs_up or dungeon_stairs_down is found in the level.
Steven Seagal of gaming industry
Re: Can scripts tell what wall set is in use?
You could just define it ahead of time with your own chart of variables listed in a script entity (names whichWallScript:
then refer to that from any other script with the script name then . such as:
or you could just return it:
Code: Select all
level1Wall = "dungeon"
level2Wall = "temple"
level3Wall = "temple"
level4Wall = "prison"
Code: Select all
if whichWallScript.level2Wall == "temple" then blahblahblah end
Code: Select all
print(whichWallScript.level2Wall)
return whichWallScript.level2Wall
Finished Dungeons - complete mods to play