_welcomeMessage = format["MY TEXT, %1,",format["%1", name player]];
_camDistance = 60;
if (_isMan and _isAlive and !_isZombie and !_isAnimal and (player distance cursorTarget < 3)) then {
if (_isBandit) then {
[player,-250] call player_humanityChange;
cutText ["my text, -250 humanity.", "PLAIN DOWN"];
if (_infectrand < 8) then {r_player_infected = true;
cutText [format["%1, youre infected by some kind of virus",name player], "PLAIN DOWN"];
};
showCinemaBorder true;
camUseNVG false;
_camera = "camera" camCreate [(position player select 0)-2, position player select 1,(position player select 2)+_camDistance];
_camera cameraEffect ["internal","back"];
};
if (!_isHero and !_isBandit) then {
[player,-500] call player_humanityChange;
cutText ["my text, -500 humanity.", "PLAIN DOWN"];
if (_infectrand < 6) then {r_player_infected = true;
cutText [format["%1, youre infected by some kind of virus",name player], "PLAIN DOWN"];
};
showCinemaBorder true;
camUseNVG false;
_camera = "camera" camCreate [(position player select 0)-2, position player select 1,(position player select 2)+_camDistance];
_camera cameraEffect ["internal","back"];
Question
juandayz
hey any knows how to call fn_unconsius.sqf with other script?
i making a script and a i need generate on the other player a fainthing. something like knockout.
guess i need to call a new custom fn_unconsius.. with compiles.sqf too
i have it
private ["_cursorTarget","_isAlive","_isMan","_isZombie","_isAnimal","_isBandit","_isHero","_rnum","_infectrand"," _welcomeMessage "," _camDistance "]
_cursorTarget = cursorTarget;
_isAlive = alive _cursorTarget;
_isMan = _cursorTarget isKindOf "Man";
_isZombie = _cursorTarget isKindOf "zZombie_base";
_isAnimal = _cursorTarget isKindOf "Animal";
_isBandit = (cursortarget getVariable["humanity",0]) <= -2500;
_isHero = (cursortarget getVariable["humanity",0]) >= 5000;
_rnum = random 100;
_infectrand = round(random 10);
_welcomeMessage = format["MY TEXT, %1,",format["%1", name player]];
_camDistance = 60;
if (_isMan and _isAlive and !_isZombie and !_isAnimal and (player distance cursorTarget < 3)) then {
if (_isBandit) then {
[player,-250] call player_humanityChange;
cutText ["my text, -250 humanity.", "PLAIN DOWN"];
if (_infectrand < 8) then {r_player_infected = true;
cutText [format["%1, youre infected by some kind of virus",name player], "PLAIN DOWN"];
};
showCinemaBorder true;
camUseNVG false;
_camera = "camera" camCreate [(position player select 0)-2, position player select 1,(position player select 2)+_camDistance];
_camera cameraEffect ["internal","back"];
_camera camSetFOV 2.000;
_camera camCommit 0;
waitUntil {camCommitted _camera};
playsound "sex";
_camera camSetTarget vehicle player;
_camera camSetRelPos [0,0,2];
_camera camCommit 12;
cutText [_welcomeMessage, "PLAIN DOWN"];
waitUntil {camCommitted _camera};
_camera cameraEffect ["terminate","back"];
camDestroy _camera;
};
if (!_isHero and !_isBandit) then {
[player,-500] call player_humanityChange;
cutText ["my text, -500 humanity.", "PLAIN DOWN"];
if (_infectrand < 6) then {r_player_infected = true;
cutText [format["%1, youre infected by some kind of virus",name player], "PLAIN DOWN"];
};
showCinemaBorder true;
camUseNVG false;
_camera = "camera" camCreate [(position player select 0)-2, position player select 1,(position player select 2)+_camDistance];
_camera cameraEffect ["internal","back"];
_camera camSetFOV 2.000;
_camera camCommit 0;
waitUntil {camCommitted _camera};
playsound "sex";
_camera camSetTarget vehicle player;
_camera camSetRelPos [0,0,2];
_camera camCommit 12;
cutText [_welcomeMessage, "PLAIN DOWN"];
waitUntil {camCommitted _camera};
_camera cameraEffect ["terminate","back"];
camDestroy _camera;
};
if (_isHero) then {
[player,-1000] call player_humanityChange;
cutText ["my text, -1000 humanity.", "PLAIN DOWN"];
if (_infectrand < 3) then {r_player_infected = true;
cutText [format["%1, youre infected by some kind of virus",name player], "PLAIN DOWN"];
};
showCinemaBorder true;
camUseNVG false;
_camera = "camera" camCreate [(position player select 0)-2, position player select 1,(position player select 2)+_camDistance];
_camera cameraEffect ["internal","back"];
_camera camSetFOV 2.000;
_camera camCommit 0;
waitUntil {camCommitted _camera};
playsound "sex";
_camera camSetTarget vehicle player;
_camera camSetRelPos [0,0,2];
_camera camCommit 12;
cutText [_welcomeMessage, "PLAIN DOWN"];
waitUntil {camCommitted _camera};
_camera cameraEffect ["terminate","back"];
camDestroy _camera;
};
};
my question is if is possible call the unconsius trough the script
Link to comment
Share on other sites
9 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now