Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Created by νєтι¢υѕ. This script is an open source to anyone.
- // 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).
- // Player addAction script: detect_action = player addAction ["Detect Me", "detection.sqf", [], 0, false, true, "", "true"];
- //This script detects, whether you are in or out of a vehicle.
- waitUntil {!isNull player};
- _vetty = _this select 0;
- //Main values. Edit what is inside of the quotation marks, to change what it says in game.
- _Out = "I'm not in the vehicle!";
- _In = "I'm In the vehicle!";
- if (_vetty != (vehicle _vetty)) then
- {
- // Shows that player is inside of the vehicle
- _vetty sideChat format [_In];
- }
- else
- {
- //Shows player is outside of the vehicle.
- _vetty sideChat format [_Out];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement