Author: djotacon
Author Website:

Requirements: No addons required

Version: 3.0

Short description: This script transform one unit in a hostage.

Date: 2017-04-21 08:56


Comments: (5)
Rating:



 

Easy Hostage Script (E.H.S)

by
djotacon


Description:
This script transform one unit in a hostage.
This script adds 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.

Installation / Usage:
Add this line to run the script to the INIT of the unit to convert:
_null=[this]execVM "hostage.sqf";


Media:



Known issues:
Limitations: One single unit for scenario.


Changelog:
v3.0


v2.0
Removing all public variables
Reduced distance to actions
Code cleaned
Removed limitations (You can put more 1 hostage at the same time)

v1.2
  • Removed all actions from hostage when is free.
  • Changed captive to true when the hostage is secured.

  • v1.1
  • 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

  • v1.0
  • first release



  • Forum topic:
    - BI forums
    - Armaholic forums




    Enable javascript to be able to download from Armaholic please!