djotacon 190 Posted February 14, 2014 Easy Hostage Script VER. 3.0 by dj OtaconDescription: This script transform one unit in a hostage.Activation: Add this line to run the script to the INIT of the unit to convert: _null=[this]execVM "hostage2.sqf";Usage: This script add three commands to the unit: Secure: Put the unit on the ground. Follow: Add the unit to the player squad. Free: Free the unit and unjoin from the squad.You can put any hostage number that you want. License: CC Attribution 4.0 International Under the following terms: Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. Update to version 3.0 Now with JIP and FULL MP/Dedicated support File:https://mega.nz/#!7owVUJAT!cqqiYtVGr-GGoFmeMGkgTlc2OR4MjeIBbM2pKRIxOLI Share this post Link to post Share on other sites
Guest Posted February 14, 2014 (edited) Release frontpaged on the Armaholic homepage. Easy Hostage Script (E.H.S) v1.0 ================================================ We have also "connected" these pages to your account on Armaholic. This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have. When you have any questions already feel free to PM or email me! Edited February 15, 2014 by Guest Share this post Link to post Share on other sites
Mr.Worner 11 Posted February 14, 2014 Good job :). p.s. Use SetUnitPos "UP/DOWN/AUTO", don't use switchmove. Share this post Link to post Share on other sites
djotacon 190 Posted February 15, 2014 Good job :). p.s. Use SetUnitPos "UP/DOWN/AUTO", don't use switchmove. Thanks I try to improve ths when finish my latest scenario. Share this post Link to post Share on other sites
djotacon 190 Posted September 20, 2014 (edited) Update script to version 1.1 Changelog: Remove error divide by zero. Code redone to avoid potential errors. Tested on COOP/SP (Not tested under MP dedicated servers) Code tweaks. Update script path Remove switchmove :) Edited September 21, 2014 by djotacon Share this post Link to post Share on other sites
anthonyfromtheuk 6 Posted September 20, 2014 "free hostage" doesn't get removed from the action menu if you release them and the option to recapture is not possible, perhaps you could add that to the script? Share this post Link to post Share on other sites
djotacon 190 Posted September 20, 2014 Yep. Free hostage remains added to the action menu only if you are near of the hostage, but don't do nothing. I think the problem is related to the [join gprnull] command but right now I dont find a solution using only one sqf file (that is the other goal for this script). Pending for the next release. Share this post Link to post Share on other sites
djotacon 190 Posted September 21, 2014 Update script to ver 1.2 Changelog: Removed all actions from hostage when is free. Changed captive to true when the hostage is secured. File: https://www.dropbox.com/s/x2dbbro3cm825sm/hostage1.2.rar?dl=0 Share this post Link to post Share on other sites
Guest Posted September 23, 2014 Thanks for sending us the new version :cool: Release frontpaged on the Armaholic homepage. Easy Hostage Script (E.H.S) v1.2 ================================================ We have also "connected" these pages to your account on Armaholic. This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have. When you have any questions already feel free to PM or email me! Share this post Link to post Share on other sites
hellstorm77 2 Posted October 4, 2014 how do you place the hostage inside a building? Share this post Link to post Share on other sites
djotacon 190 Posted October 5, 2014 how do you place the hostage inside a building? http://www.armaholic.com/forums.php?m=posts&q=21091 Share this post Link to post Share on other sites
magicpanda 19 Posted August 14, 2015 Cheers for the script, it's good stuff. Is it possible to change the activation distance on the addAction. Telekinesis is breaking the immersion :) Share this post Link to post Share on other sites
jshock 513 Posted August 15, 2015 Cheers for the script, it's good stuff. Is it possible to change the activation distance on the addAction. Telekinesis is breaking the immersion :) Change the following lines within the sqf: //42 _sec = _hostage addaction ["<t color=""#0000FF"">" + ("Secure prisioner") + "</t>","hostage.sqf",nil,6,true,true,"","_this distance _target < 3"]; //60 _hostage addaction ["<t color=""#0000FF"">" + ("Follow squad") + "</t>","hostage.sqf",nil,6,true,true,"","_this distance _target < 3"]; //76 _hostage addaction ["<t color=""#0000FF"">" + ("Free hostage") + "</t>","hostage.sqf",nil,6,true,true,"","_this distance _target < 3"]; 1 Share this post Link to post Share on other sites
magicpanda 19 Posted August 15, 2015 Cheers Jshock, worked perfectly. Share this post Link to post Share on other sites
salty6924 12 Posted March 17, 2016 I do apologize for bringing this thread back from the dead, But i am curious if anyone knows how to apply the hostage command to a group of units, so that securing one secures all in group, and you can add all to your group in one go as well. 1 Share this post Link to post Share on other sites
djotacon 190 Posted September 20, 2016 Update to version 2.0 Changelog: Removing all public variables Reduced distance to actions Code cleaned Removed limitations (You can put more 1 hostage at the same time) File link: https://www.dropbox.com/s/7g2j5kvl7ba4a1s/hostage2.7z?dl=0 1 Share this post Link to post Share on other sites
Guest Posted September 22, 2016 Thanks for sending us the new version :) Updated version frontpaged on the Armaholic homepage. Easy Hostage Script (E.H.S) v2.0 Share this post Link to post Share on other sites
djotacon 190 Posted April 20, 2017 New Version 3.0 See main thread for changelog. Share this post Link to post Share on other sites
Tankbuster 1747 Posted April 20, 2017 On 15/08/2015 at 3:44 AM, jshock said: Change the following lines within the sqf: //42 _sec = _hostage addaction ["<t color=""#0000FF"">" + ("Secure prisioner") + "</t>","hostage.sqf",nil,6,true,true,"","_this distance _target < 3"]; //60 _hostage addaction ["<t color=""#0000FF"">" + ("Follow squad") + "</t>","hostage.sqf",nil,6,true,true,"","_this distance _target < 3"]; //76 _hostage addaction ["<t color=""#0000FF"">" + ("Free hostage") + "</t>","hostage.sqf",nil,6,true,true,"","_this distance _target < 3"]; Can I suggest the use of the new distance2d command instead of distance? For CPU usage, it's cheaper. Share this post Link to post Share on other sites
djotacon 190 Posted April 20, 2017 12 minutes ago, Tankbuster said: Can I suggest the use of the new distance2d command instead of distance? For CPU usage, it's cheaper. Good suggestion, can you make the change and post if there's issues? Share this post Link to post Share on other sites
Tankbuster 1747 Posted April 20, 2017 Yep, works just fine. Share this post Link to post Share on other sites
Guest Posted April 21, 2017 The Armaholic mirror has been updated with the new version: Easy Hostage Script (E.H.S) v3.0 Share this post Link to post Share on other sites