Advertisement
lowheartrate

fn_blindfolded.sqf

Aug 4th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.98 KB | None | 0 0
  1. /*
  2.     File: fn_blindfolded.sqf
  3.     Author: lowheartrate
  4.    
  5.     Description:
  6.     What happens to the player when blindfolded.
  7. */
  8. private["_blindfolder"]
  9.  
  10. //  This is the player that we brought over to the script originally so this is the blindfolder.
  11. _blindfolder = param[0,ObjNull,[ObjNull]];
  12.  
  13. hint format["You have been blindfolded by %1.", _gagger getVariable["realname",_gagger]];
  14. titleText ["You have been blindfolded, you cannot see!", "PLAIN"];
  15.  
  16. //  Disable the players view (Makes their screen black).
  17. cutText["You are blindfolded and cannot see.","BLACK FADED"];
  18. 0 cutFadeOut 1;
  19.  
  20. //  Waituntil the player is no longer blindfolded or is not restrained then lets enable their sight again.
  21. waitUntil{!(player getVariable ["blindfolded",false]) OR !(player getVariable ["restrained",false])};
  22. hint "You are no longer blindfolded, LET THERE BE LIGHT!";
  23. titleText ["You are no longer blindfolded, LET THERE BE LIGHT!", "PLAIN"];
  24.  
  25. // Enables their sight again
  26. titlecut [" ","BLACK IN",3];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement