covenax.blogg.se

I believe i can fly.wav
I believe i can fly.wav










Secondly, your issue is almost for sure fixed by calling your second timer something else. If winchup = 0 and patient_ground = 3 and patient =1 thenĭo_every_frame('winchdown_delay_transit()')ĭo_every_frame('start_winchdown_delay_transit()')ĭo_every_frame('start_winchup_delay_load()') If winchup = 0 and patient = 1 and number_of_frames < 600 then If winchdown = 0 and patient_ground = 3 then If winchdown = 1 and patient_ground = 2 then If winchdown = 1 and number_of_frames < 600 then "Resources/sounds/custom/test3.wav")ĭataref("winchman", "412/winch/operator", "writeable", 0)ĭataref("rightrear", "sim/cockpit2/switches/custom_slider_on", "writable", 1)ĭataref("patient", "412/winch/patient", "writeable", 0)ĭataref("patient_ground", "412/special/show_PatientOnGround", "writeable") Local patload = load_WAV_file(SYSTEM_DIRECTORY. Local pattransit = load_WAV_file(SYSTEM_DIRECTORY. Local windwn = load_WAV_file(SYSTEM_DIRECTORY. sim/cockpit2/switches/custom_slider_on Moves door, 1 is open Here's my masterpiece in all it's janky glory:

i believe i can fly.wav

I think the issue is there.Īlso, can I set an if/then condition to "greater than" or "less than" a value? I tried => and got an error, and >= no error but didn't do anything. I'm resetting the frames to zero from the previous delay on line 75 under (function winchup_up()). In testing if I take out the delay, everything works. My issues seems to be with starting the delay on line 95 (function start_winchup_delay_load()). Everything seems to be working, except for the last "delay" for getting the winchman and patient into the helo. Ok, I've been at it for hours and I'm almost there. If winchdown = 1 and previous_winchdown = 0 thenĭo_every_frame("winchman_on()", "winchdown()") If winchman = 1 and previous_winchman = 0 then "Resources/sounds/custom/test2.wav")ĭataref("winchman", "412/winch/operator")ĭataref("winchup", "412/winch/cable_extendend_m")ĭataref("winchdown", "412/winch/load_is_on_ground")ĭataref("patient", "412/winch/patient", "writeable") "Resources/sounds/custom/operatoronwinch_dave.wav") Local OpOn = load_WAV_file(SYSTEM_DIRECTORY.

#I believe i can fly.wav full#

412/winch/cable_extendend_m 0 is full up

i believe i can fly.wav

I know I've got both sounds set to "operatorwinch_dave" it's just to test the trigger with a sound I know works. I don't get it, it's exactly the same type of command? No errors, checked and double checked files. Ok, first sound plays, second sound will not. Can I randomize the sound that is played, so that the operator does not say exactly the same thing every time? Can I change the state of a dataref based on the state of a different dataref, for instance (if dataref1 = 1 then set dataref2 = 0) Insert a time pause, for instance (if "dataref" = 1 wait 30 seconds then "play_sound") It does not play when I test it in-game. Any clues on what I'm doing wrong?Īlso, I would like to do the following things in my script, if possible: P/plugins/xlua/scripts/412_SAR_Sounds/412_SAR_a: in main chunkĭebugging session completed (traced 0 instructions). P/plugins/xlua/scripts/412_SAR_Sounds/412_SAR_a:1: attempt to perform arithmetic on global 'sounds' (a nil value) I'm using zerobrane to write, and when I test it I get the error:

i believe i can fly.wav

If current_winchop = 1 and previous_winchop = 0 then Local previous_winchop = current_winchop -he starts at 0 Local OpOn = load_WAV_file(sounds/custom/OpOn.wav) - sound file I want to playĭataref("current_winchop", "412/winch/operator") 412/winch/load_is_on_ground 1 is on ground, 0 is in air 412/winch/cable_direction 0 stopped, 1 down, -1 up Using DataRefTool I located the datarefs I would need to work with, and they are listed at the top of my script.

i believe i can fly.wav

What I want to do is every time my Winch Operator is on the winch, I want to play a sound (It will be a voiceover, such as "I'm hooked up, lower me now") I watched some tutorials and looked over some example scripts, and I came up with what is below. There are a few things I want to do, but I'm a complete lua noob and I'm very ignorant here. I want to play some sounds related to the X-Trident Bell 412 SAR script. Hi guys/gals, I'm not sure this is the correct forum but I was directed here from the "Sound Engineering" forum.










I believe i can fly.wav