Author: Goschie
Author Website:

Requirements: No addons required

Version: 1.1

Short description:

Date: 2009-01-14 21:48


Comments: (2)
Rating:



 

Suicide bomber script
by
POTS


Description:
You can attach this script to a unit or have trigger or something activate the suicide bombers bomb.


Usage:
syntax: [UNIT, CHANCE, SUICIDE YELL, DELAY, SIZE, ATTACH TO UNIT, DISTANCE FROM TARGET, SIDE] execVM "suicidebomber.sqf";

1. UNIT: unit or object
2. CHANCE: number out of 10
3. SUICIDE YELL: string representing last words such as "DIE AMERICAN", if nothing set to ""
4. DELAY: number in seconds to delay after yelling or nothing.
5. SIZE: string being "SMALL", "MEDIUM", or "LARGE"
6. ATTACH TO UNIT: 1 if attached to unit, or it basicaly blows itself up when near unit with specified side, 0 if off
7. DISTANCE FROM TARGET: number means radius of activation (Only works with attach to units set to 1)
8. SIDE: string saying "WEST" or "EAST" for enemy side, "" if none (Only works with attach to units set to 1)

Examples:
null = [BOMBER, 10, "AMERICANS WILL DIE!", 1, "MEDIUM", 1, 5, "WEST"] execVM "suicidebomber.sqf";
null = [BOMBER, 5, "", 0, "SMALL", 0, 0, ""] execVM "suicidebomber.sqf";


Changelog:
v1.1
- added the check if "bomber" is dead to exit script

v1.0
- first release


Forum topic:
- Armaholic forums




Enable javascript to be able to download from Armaholic please!



Tags: No tags