Jump to content

blue

Member
  • Posts

    8
  • Joined

  • Last visited

Reputation Activity

  1. Like
    blue got a reaction from hekut146 in Adding new function to server_updateObject.sqf (no update information in db)   
    You define object_position2 as a function but you are calling _object_position2 which does not exist. Also object_position2 is never passed the variable containng the _object. You, also, cannot pass a non-string value or variable to diag_log (diag_log _fuel), if it is a non-string value or variable it must first be transformed into a string.
    Also, what is serializeExtendedObjectData?
  2. Like
    blue got a reaction from GoldEagle in Very simple earplugs script   
    The fadeSound function doesn't affect the game volume as set by the player in the options menu. Even if your game volume is turned off in the options menu soundVolume could be a greater than zero value.
    Longer version:
    To calculate the volume of a given sound the engine takes into account; the specified volume of that sound as defined in a config or internally, the distance from the player to that sound source, soundVolume and the volume set by the player in the options menu. Once it has all those it can then calculate the final output volume for a given sound. This explains the reason why soundVolume and the user set volume do not correlate, they are recognised internally to be two separate values not one.
    I may be simplifying the process taken to calculate final volumes but nevertheless it allows you to understand better about the fadeSound and soundVolume functions.
     

×
×
  • Create New...