Flightcaptain93
Member-
Content Count
22 -
Joined
-
Last visited
-
Medals
Everything posted by Flightcaptain93
-
Does anybody know the IDD to close the respawnmenu? Or the Dialog if it is one? (Its the "MenuPosition" Template for Base Respawn). So i can close it and open it later? https://1drv.ms/u/s!Al2S9lOz4k52hllbsOCzE8e_Q5hj
-
IDD of Respawnmenu?
Flightcaptain93 replied to Flightcaptain93's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks this is working! -
Respawn template MenuPosition delay?
Flightcaptain93 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Is it possible that a dead player can spectate his body in 3rdperson and after one minute or the respawn delay time the respawn template "Menu Position" is activated? At the moment the menu position template is activated at the moment the player dies. -
Passing Arguments via addaction
Flightcaptain93 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
_spawn1 = player addAction [ "Place spawn", // title "scripts\placerespawn.sqf", // script [_tent,_spawn2], <========= HERE spawn2 cant be used in the placerespawn.sqf // arguments 1.5, // priority true, // showWindow true, // hideOnUse "", // shortcut "true", // condition 50, // radius false, // unconscious "", // selection "" // memoryPoint ]; _spawn2 = player addAction [ "Cancel placing spawn", // title "scripts\cancelrespawn.sqf",// script [_tent,_spawn1], // arguments 1.5, // priority true, // showWindow true, // hideOnUse "", // shortcut "true", // condition 50, // radius false, // unconscious "", // selection "" // memoryPoint ]; I added two addActions via one script. _spawn2 can handle the passed variable _spawn1 but _spawn1 cant handle the passed variable _spawn2 because it is created later... How can i pass _spawn2 into the script from _spawn1? in both scripts both of these actions are deleted. or should i use another approach? -
Passing Arguments via addaction
Flightcaptain93 replied to Flightcaptain93's topic in ARMA 3 - MISSION EDITING & SCRIPTING
. -
I got "Base" Respawn enabled with map selection. It works. I have two markers one named "respawn_west" and one is named "respawn_UNITNAME" The unit I want to have both respawns accessible is named UNITNAME. When I respawn i only can choose the point at respawn west. If i change the name from respawn_UNITNAME to respawn_west2 it works fine. but i want that one position only for that unit available. Can someone help me pls. http://killzonekid.com/arma-scripting-tutorials-respawn-on-marker/
-
Respawn for one Unit!
Flightcaptain93 replied to Flightcaptain93's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thank you it works 🙂 -
[SOLVED] addMissionEventHandler
Flightcaptain93 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
_civkilled = addMissionEventHandler ["EntityKilled",{if (((_this select 1) == player) && (side (_this select 0) == civilian)) then {[[], "ray_lose_fnc", true, true] call BIS_fnc_MP; [[(_this select 1)], "ray_killer_fnc", true, true] call BIS_fnc_MP; }else{}; }]; I have this type of code... it works correctly. But if i kill the second teammate in the group of the player (blufor) the trigger fires... Thanks :) -
[SOLVED] addMissionEventHandler
Flightcaptain93 replied to Flightcaptain93's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks :) -
[SOLVED] addMissionEventHandler
Flightcaptain93 replied to Flightcaptain93's topic in ARMA 3 - MISSION EDITING & SCRIPTING
:) no there should be no punishment for killing teammates. the first statement (_this select 1) == player) checks if the killer is an player. the second one (_this select 0) == civilian) if an civilian was killed. if both of them are true my script should be executed. That works... but accidentally the trigger fires when the player killes 2 blufor units.... and that is weird. I dont get why the script does this??? mayby i miss something important? -
[SOLVED] addMissionEventHandler
Flightcaptain93 replied to Flightcaptain93's topic in ARMA 3 - MISSION EDITING & SCRIPTING
if someone (from the players, blufor) is killing a civilian the mission should end as lose. -> that is working the mission also end as lose if someone is teamkilling (blufor). You can kill the first teammate and nothing will happen, but if you kill the second one the mission end also as lose? <- thats my problem... -
Hello :) I have this type of code in one of my missions. for "_i" from 1 to 100 do { _nil = [_cs,_hpfirst,_hpsecond,_dest] execVM "scripts\carspawn.sqf"; _number = floor (random 941) + 60; sleep _number; }; In the script different cars with a different amount of passengers are generated. They get waypoints etc. But i think does once the script startet twice it affect the other script. Is it possible to start the script multiple times without having any influence on each other? I´m new into scripting. Thanks guys.
-
execVM Multiple Times
Flightcaptain93 replied to Flightcaptain93's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks it worked out :) yeah sorry I got a little bit of false understanding... english isnt my mother language. But it worked after i read it correctly :) thanks -
execVM Multiple Times
Flightcaptain93 replied to Flightcaptain93's topic in ARMA 3 - MISSION EDITING & SCRIPTING
okay i did this but i get still the error that _car is not defined in the line after the ray_traffic_fnc; [_car] call ray_traffic_fnc; //here the _car is spawned and get the information from the car _driver = driver _car; /// <---- here is the script error that _car isnt defined... -
execVM Multiple Times
Flightcaptain93 replied to Flightcaptain93's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks :) i removed that -
execVM Multiple Times
Flightcaptain93 replied to Flightcaptain93's topic in ARMA 3 - MISSION EDITING & SCRIPTING
After i switchet the car variable to a local one. _car. The variable _car is first called in my ray_traffic_fnc where the car is spawned... is it possible to give the information about _car into the part of the script after the ray_traffic_fnc?? because now i get the error that the variable _car is not defined... call ray_traffic_fnc; _driver = driver car; -
execVM Multiple Times
Flightcaptain93 replied to Flightcaptain93's topic in ARMA 3 - MISSION EDITING & SCRIPTING
This is the code of the carspawnscript. I have a roadblock with a bargate. If 1 car is standing infront of it the second car has to hold at an other spot. The car holds infront of the bargate and continues driving if the bargate is opend. But if the second car spawn the first won´t continue after i open the gate... if (isServer) then { _cs = (_this select 0); _hpfirst = (_this select 1); _hpsecond = (_this select 2); _dest = (_this select 3); sleep 1; if (firstpoint) then { sleep 5; }; if (firstpoint) then { firstpoint = false; publicvariableserver "firstpoint"; call ray_traffic_fnc; _driver = driver car; _groupd = group _driver; sleep 1; _wp = _groupd addWaypoint [_hpfirst, 0]; _wp setWaypointCombatMode "BLUE"; _wp setWaypointSpeed "Limited"; _wp setWaypointBehaviour "CARELESS"; _wp setWaypointtype "MOVE"; waituntil {sleep 1; (((bargate animationPhase "Door_1_rot") == 1) && ((car distance2D bargate) <= 20) && ((speed car) <= 1))}; firstpoint = true; publicvariableserver "firstpoint"; sleep 1; _wp = _groupd addWaypoint [[11509.3,6270.87,0],0]; _wp = _groupd addWaypoint [_dest, 0]; _wp setWaypointCombatMode "BLUE"; _wp setWaypointSpeed "Limited"; _wp setWaypointBehaviour "CARELESS"; _wp setWaypointtype "MOVE"; waituntil {(car distance2D _dest) <= 50}; {car deleteVehicleCrew _x} forEach crew car; deletevehicle car; } else { if (secondpoint) then { secondpoint = false; publicvariableserver "secondpoint"; call ray_traffic_fnc; _driver = driver car; _groupd = group _driver; _wp = _groupd addWaypoint [_hpsecond, 0]; _wp setWaypointCombatMode "BLUE"; _wp setWaypointSpeed "Limited"; _wp setWaypointBehaviour "CARELESS"; _wp setWaypointtype "MOVE"; waituntil {sleep 1; firstpoint}; _firstpoint = false; _secondpoint = true; publicvariableserver "firstpoint"; publicvariableserver "secondpoint"; sleep 10; _wp = _groupd addWaypoint [_hpfirst, 0]; _wp setWaypointCombatMode "BLUE"; _wp setWaypointSpeed "Limited"; _wp setWaypointBehaviour "CARELESS"; _wp setWaypointtype "MOVE"; waituntil {sleep 1; (((bargate animationPhase "Door_1_rot") == 1) && ((car distance2D bargate) <= 20) && ((speed car) <= 1))}; _wp = _groupd addWaypoint [[11509.3,6270.87,0],0]; _firstpoint = true; publicvariableserver "firstpoint"; sleep 1; _wp = _groupd addWaypoint [_dest, 0]; _wp setWaypointCombatMode "BLUE"; _wp setWaypointSpeed "Limited"; _wp setWaypointBehaviour "CARELESS"; _wp setWaypointtype "MOVE"; waituntil {(car distance2D _dest) <= 50}; {car deleteVehicleCrew _x} forEach crew car; deletevehicle car; } else { hint "NO SPAWN POSSIBLE"; }; }; }; and the traffic_function ray_traffic_fnc = { _cararray = ["C_truck_02_covered_F","C_offroad_01_F","C_SUV_01_F","I_C_Offroad_02_unarmed_F"]; _carspawn = _cararray call BIS_fnc_selectRandom; car = _carspawn createVehicle _cs; car setdir 180; clearweaponcargoglobal car; clearmagazinecargoglobal car; clearitemcargoglobal car; clearbackpackcargoglobal car; _freePositionscargo = car emptyPositions "cargo"; hint format ["Cargoplaces car: %1",_freePositionscargo]; sleep 2; _comander = car emptyPositions "Commander"; _gunner = car emptyPositions "Gunner"; _comgun = _comander + _gunner; _unitcountcar = _freePositionscargo + _comgun + 1; hint format ["Cargo with driver, gunner etc: %1",_unitcountcar]; sleep 2; _randompassenger = floor (random _unitcountcar); hint format ["Crew (minus): %1",_randompassenger]; sleep 2; _crewnumber = _unitcountcar - _randompassenger; hint format ["Crew (spawn): %1",_crewnumber]; sleep 3; for "_i" from 1 to _crewnumber do { grp = creategroup civilian; _man = grp createUnit ["C_Man_casual_4_F_tanoan", _cs, [], 5, "PRIVATE"]; _needofdriver = car emptyPositions "Driver"; if (_needofdriver == 1) then { _man moveindriver car; } else { _man moveincargo car; }; }; }; -
[SP/COOP 05] PURPLE NIGHT (Stealth mission)
Flightcaptain93 replied to nanomien's topic in ARMA 3 - USER MISSIONS
:) nice work -
:) nice work
-
great work :)
- 70 replies
-
Dynamic Take And Secure - Randomized Round-Based No-Respawn A&D
Flightcaptain93 replied to galzohar's topic in ARMA 3 - USER MISSIONS
nice :) -
nice :)
- 31 replies
-
- takistan
- insurgency
-
(and 3 more)
Tagged with: