Author Topic: Preset Variables on Sounds?  (Read 328 times)

Legacy_DragonTayl

  • Newbie
  • *
  • Posts: 40
  • Karma: +0/-0
Preset Variables on Sounds?
« on: December 17, 2011, 02:33:51 am »


               I am wondering if anyone knows if there are "issues" with storing variables on sound placeables? I have a script that is trying to read variables off a placed sound, but all I get are the default "on error" results (blank strings, 0 ints, etc.)

The same script is having no trouble reading variables off the area. 
               
               

               
            

Legacy_wyldhunt1

  • Sr. Member
  • ****
  • Posts: 443
  • Karma: +0/-0
Preset Variables on Sounds?
« Reply #1 on: December 17, 2011, 02:37:37 am »


               I've never tried, but my gut says that it probably won't work.
I don't recall an OBJECT_TYPE_SOUND constant (Though I may be wrong).

What are to trying to do, exactly?

EDITED FOR CONTENT:

I have a weather system that uses a lot of custom sounds that are controlled by variables.
The way it works is with waypoints. I place all of my variables on waypoints, and then reference them for all of the variables I need for the weather in that area, including sounds.
               
               

               


                     Modifié par wyldhunt1, 17 décembre 2011 - 02:40 .
                     
                  


            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Preset Variables on Sounds?
« Reply #2 on: December 17, 2011, 03:59:39 am »


               It looks like any varaiables that are placed in the toolset are lost.   I have had no problem with locals that i have placed on the sound Object via script.    

Note:  Sounds are not "Placeables Objects"  they are "Sound Objects". Just minor nit picking.
               
               

               
            

Legacy_wyldhunt1

  • Sr. Member
  • ****
  • Posts: 443
  • Karma: +0/-0
Preset Variables on Sounds?
« Reply #3 on: December 17, 2011, 04:23:28 am »


               That's interesting to note...
Thanks for checking that, Lightfoot8.
               
               

               
            

Legacy_Xardex

  • Sr. Member
  • ****
  • Posts: 414
  • Karma: +0/-0
Preset Variables on Sounds?
« Reply #4 on: December 17, 2011, 10:21:43 am »


               I like to use waypoints with non-ambient/not-always playing sound objects. You can use the waypoints locals to point to the soound object and store the sounds variables to the waypoint aswell.
               
               

               
            

Legacy_DragonTayl

  • Newbie
  • *
  • Posts: 40
  • Karma: +0/-0
Preset Variables on Sounds?
« Reply #5 on: December 18, 2011, 03:40:00 am »


               Yeah, using waypoints instead of sounds worked. I was using them for spawn points because they're a very visual representation of a radius. I had originally been using waypoints, but tried using some sounds so I could see the radius (I was using a random location near script)