Advertisement
Veticus

detection.sqf - Arma Script

Mar 21st, 2014
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. // Created by νєтι¢υѕ. This script is an open source to anyone.
  2. // This is a very simple script. But one of my first custom ones. I recommend that you add an action to your init.sqf to call upon this function (Unless you have your own "addAction" array).
  3. // Player addAction script: detect_action = player addAction ["Detect Me", "detection.sqf", [], 0, false, true, "", "true"];
  4.  
  5. //This script detects, whether you are in or out of a vehicle.
  6. waitUntil {!isNull player};
  7. _vetty = _this select 0;
  8.  
  9. //Main values. Edit what is inside of the quotation marks, to change what it says in game.
  10. _Out = "I'm not in the vehicle!";
  11. _In = "I'm In the vehicle!";
  12.  
  13. if (_vetty != (vehicle _vetty)) then
  14. {
  15.  
  16. // Shows that player is inside of the vehicle
  17. _vetty sideChat format [_In];
  18.  
  19. }
  20.  
  21. else
  22.  
  23. {
  24.  
  25. //Shows player is outside of the vehicle.
  26. _vetty sideChat format [_Out];
  27.  
  28. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement