aboutsummaryrefslogtreecommitdiff
path: root/uag/mods/ACE3_Ketamine/addons/uag_ketamine/functions/fn_injectKetamine.sqf
blob: 35ff9d67682091ee2596f23cb47fd7aa834be4d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 *	UAG_fnc_injectKetamine
 *	
 *	Injects the player with Ketamine.
 *	
 *
 *	Parameters:
 *	0: _player <PLAYER> = player
 *
 *	Return Value:
 *	None
 *
 *	examples:
 *	_player call UAG_fnc_injectKetamine;
*/


params ["_player"];

// Actually make the Player Invulnerable for 60 seconds
[_player] spawn {
	params ["_player"];

	_player allowDamage false;
	_player setStamina ((getStamina _player) / 3);
	sleep 60;
	_player allowDamage true;
};