Ombra_ita 10 Posted February 18, 2022 Hello, this is a simple script to halo jump a player. Does it work in Multiplayer? Yes, MultiPlayer and SinglePlayer. What does this script do? This script allows a player to HALO on a given point on a map. How do I use this script? Place the script in Select an object on the editor and place the following line into its init to allow HALO from the action menu: (remove <t color='#37A9E7'></t> to show it as plain white like any other action) //If script is in scenario root directory this addAction["<t color='#37A9E7'>H.A.L.O. Jump</t>","[player] execVM 'halo.sqf';"]; //If script is in other scenario directory this addAction["<t color='#37A9E7'>H.A.L.O. Jump</t>","[player] execVM 'yourFolder\halo.sqf';"]; halo.sqf //Uncomment following line if used as function //_unit = param[0]; //Uncomment following line if used as script _unit = _this select 0; _haloAltitude = 1000; //Opening map and handling click openMap true; mapclick = false; onMapSingleClick "clickpos = _pos; mapclick = true; onMapSingleClick """";true;"; waituntil {mapclick}; _haloLocation = clickpos; _unitLoadout = getUnitLoadout _unit; cutText ["H.A.L.O. in progress...", "BLACK OUT", 1]; sleep 1; openMap false; _unit setPos _haloLocation; _unit addBackpack "B_Parachute"; //Halo [_unit, _haloAltitude] call bis_fnc_halo; sleep 2; cutText ["", "BLACK IN", 1]; waitUntil {(getpos _unit select 2) < 2}; //Giving loadout back sleep 1; _unit setUnitLoadout _unitLoadout; 1 Share this post Link to post Share on other sites
TPM_Aus 137 Posted July 7, 2022 I can't seem to get this script to work. I have been out of the game for a while so a lil rusty. I get "Error Invalid number in expression" when executed from a whiteboard. / /Uncomment following line if used as> 7:46:15 Error position: </ /Uncomment following line if used as> 7:46:15 Error Invalid number in expression 7:46:15 File C:\Users\<username>\Documents\Arma 3 - Other Profiles\TPM\mpmissions\test.Altis\scripts\halo.sqf..., line 1 Script looks like: Spoiler / /Uncomment following line if used as function //_unit = para m[0]; //Uncomment following line if used as script _unit = _this select 0; _haloAltitude = 1000; //Opening map and handling click openMap true; mapclick = false; onMapSingleClick "clickpos = _pos; mapclick = true; onMapSingleClick """";true;"; waituntil {mapclick}; _haloLocation = clickpos; _unitLoadout = getUnitLoadout _unit; cutText ["H.A.L.O. in progress...", "BLACK OUT", 1]; sleep 1; openMap false; _unit setPos _haloLocation; _unit addBackpack "B_Parachute"; //Halo [_unit, _haloAltitude] call bis_fnc_halo; sleep 2; cutText ["", "BLACK IN", 1]; waitUntil {(getpos _unit select 2) < 2}; //Giving loadout back sleep 1; _unit setUnitLoadout _unitLoadout; Whiteboard Init: Spoiler this addAction["<t color='#37A9E7'>H.A.L.O. Jump</t>","[player] execVM 'scripts\halo.sqf';"]; Share this post Link to post Share on other sites
Jackal326 1181 Posted July 8, 2022 13 hours ago, TPM_Aus said: I can't seem to get this script to work. I have been out of the game for a while so a lil rusty. I get "Error Invalid number in expression" when executed from a whiteboard. / /Uncomment following line if used as> 7:46:15 Error position: </ /Uncomment following line if used as> 7:46:15 Error Invalid number in expression 7:46:15 File C:\Users\<username>\Documents\Arma 3 - Other Profiles\TPM\mpmissions\test.Altis\scripts\halo.sqf..., line 1 Script looks like: Reveal hidden contents / /Uncomment following line if used as function //_unit = para m[0]; //Uncomment following line if used as script _unit = _this select 0; _haloAltitude = 1000; //Opening map and handling click openMap true; mapclick = false; onMapSingleClick "clickpos = _pos; mapclick = true; onMapSingleClick """";true;"; waituntil {mapclick}; _haloLocation = clickpos; _unitLoadout = getUnitLoadout _unit; cutText ["H.A.L.O. in progress...", "BLACK OUT", 1]; sleep 1; openMap false; _unit setPos _haloLocation; _unit addBackpack "B_Parachute"; //Halo [_unit, _haloAltitude] call bis_fnc_halo; sleep 2; cutText ["", "BLACK IN", 1]; waitUntil {(getpos _unit select 2) < 2}; //Giving loadout back sleep 1; _unit setUnitLoadout _unitLoadout; Whiteboard Init: Hide contents this addAction["<t color='#37A9E7'>H.A.L.O. Jump</t>","[player] execVM 'scripts\halo.sqf';"]; I'm no scripting genius but wont that execution method only work if you ARE PLAYING AS the whiteboard? Share this post Link to post Share on other sites
TPM_Aus 137 Posted July 11, 2022 On 7/8/2022 at 8:54 PM, Jackal326 said: I'm no scripting genius but wont that execution method only work if you ARE PLAYING AS the whiteboard? No I don't think so. That execution method enables the you to select HALO jump from the whiteboard. Share this post Link to post Share on other sites
RCA3 589 Posted July 11, 2022 On 7/7/2022 at 9:37 PM, TPM_Aus said: / /Uncomment following line if used as> 7:46:15 Error position: </ /Uncomment following line if used as> Your error right there. / / is different from // 1 Share this post Link to post Share on other sites
TPM_Aus 137 Posted July 11, 2022 6 hours ago, RCA3 said: Your error right there. / / is different from // Thanks, that worked. Completely missed it. Share this post Link to post Share on other sites
Gunter Severloh 4052 Posted December 21, 2022 A tutorial guide for those interested in implementing this Halo script into their missions: 2 Share this post Link to post Share on other sites
Ombra_ita 10 Posted March 3, 2023 On 12/21/2022 at 1:42 PM, Gunter Severloh said: A tutorial guide for those interested in implementing this Halo script into their missions: Amazing! Thanks man. 1 Share this post Link to post Share on other sites