#Hello, do you know how I can add

1 messages · Page 1 of 1 (latest)

modern charm
#

Not working on vehicles so it took me a minute to have a look, buuuut it seems we actually have no Signal that could be directly usable for this. :S

Something I can think of is using a combination of
*The GVehicleInterior Variable
*The GIsThirdPersonCam Variable and
*Distance

Soooo the interior volume would be something like
GVehicleInterior * (1-GIsThirdPersonCam) * (Distance < 4)
for the interior sound, and the inverse (1 - this formula) for the exterior sound.

Meaning the vehicle's interior sound will be played if the character/camera is inside the vehicle, it's not third person cam and the distance to the camera is smaller than four meters (to prevent that ALL vehicles play the interior sound once the conditions are met)

modern charm
#

Update: Apparently, the UnderPlayerControl Signal is 1 if you're in the vehicle, even if you're not controlling it, so that should work then. 🙂