Markokil321 Posted November 18, 2014 Report Share Posted November 18, 2014 Silly question, it's 6am and i just can't seem to remember how this is done. Would like to make a player bleed if a random value is higher than X. Having issues with the bleeding part. if (floor(random 100) > 50) then { r_player_injured = true; player setVariable ['USEC_injured',true,true]; [0.6,1] call fnc_usec_pitchWhine; addCamShake [55, 0.6, 111]; }; This makes the actual health icon flash and loose blood (as when bleeding), spawns a whine on the player and shakes their screen briefly. However i cannot get the bleeding ingame to show up. (the red trail of blood spurting from player) http://i.gyazo.com/ac196a9062a9158ad2ff1a1f53aff16f.png- to show what i mean if it wasn't clear, lol. Any help is appreciated. Link to comment Share on other sites More sharing options...
0 calamity Posted November 18, 2014 Report Share Posted November 18, 2014 Silly question, it's 6am and i just can't seem to remember how this is done. Would like to make a player bleed if a random value is higher than X. Having issues with the bleeding part. if (floor(random 100) > 50) then { r_player_injured = true; player setVariable ['USEC_injured',true,true]; [0.6,1] call fnc_usec_pitchWhine; addCamShake [55, 0.6, 111]; }; This makes the actual health icon flash and loose blood (as when bleeding), spawns a whine on the player and shakes their screen briefly. However i cannot get the bleeding ingame to show up. (the red trail of blood spurting from player) http://i.gyazo.com/ac196a9062a9158ad2ff1a1f53aff16f.png- to show what i mean if it wasn't clear, lol. Any help is appreciated. This might help... /localize "CLIENT: Start Player Bleeding"; [] spawn fnc_usec_playerBleed; //publicizes the blood value at regular intervals [] spawn fnc_med_publicBlood; found in init_medical.sqf defined in setup_functions_med.sqf Link to comment Share on other sites More sharing options...
Question
Markokil321
Silly question, it's 6am and i just can't seem to remember how this is done.
Would like to make a player bleed if a random value is higher than X. Having issues with the bleeding part.
This makes the actual health icon flash and loose blood (as when bleeding), spawns a whine on the player and shakes their screen briefly.
However i cannot get the bleeding ingame to show up. (the red trail of blood spurting from player)
http://i.gyazo.com/ac196a9062a9158ad2ff1a1f53aff16f.png- to show what i mean if it wasn't clear, lol.
Any help is appreciated.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now