Jump to content

shik4ri

Member
  • Content Count

    10
  • Joined

  • Last visited

  • Medals

Community Reputation

10 Good

About shik4ri

  • Rank
    Private

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hey, I've downloaded the sample Mission "Defuse the Bomb" from cobra4v320. Great Script, so I wanna use it in my mission. But: normally, I create tasks with modules and not in the init.sqf. So is it possible to convert this "init.sqf tasks/Briefing" into the editor? Like: Trigger - Modul - Modul - Trigger? Which are the crucial lines to copy in the condition line and in the activation line? CODEINPUT = []; CODE = [(round(random 9)), (round(random 9)), (round(random 9)), (round(random 9)), (round(random 9)), (round(random 9))]; //6 digit code can be more or less WIRE = ["BLUE", "WHITE", "YELLOW", "GREEN"] call bis_fnc_selectRandom; DEFUSED = false; ARMED = false; codeHolder = [lAPTOP1, LAPTOP2, LAPTOP3, LAPTOP4] call BIS_fnc_selectRandom; codeHolder addAction [("<t color=#E61616'>" + ("The Code") + "</t>"),"DEFUSE\searchAction.sqf","",1,true,true,"","(_target distance _this) < 3]; //Mission Task if (isServer) then { [ units defuseGrp, "Task_Defuse", ["Find the code and defuse the bomb before it explodes.", "Defuse the bomb.", "DEFUSE"], caseBomb, TRUE ] call BIS_fnc_taskCreate; }; //Briefing _diaryEntry = player createDiaryRecord ["Diary",["Situation","Assault the hangar, find the code on one of the laptops and defuse the bomb before it detonates."]]; // Hide helper arrows {hideObject _x} forEach allMissionObjects "Helper_Base_F"; //Hangar lights private ["_light","_lightPos"]; { _lightPos = _x; _light = "#lightpoint" createVehicleLocal (position _lightPos); _light setLightAmbient [0/255, 15/255, 15/255]; _light setLightColor [255/255, 215/255, 80/255]; _light setLightBrightness 1.0; _light attachTo [_lightPos, [0,0,0]]; } forEach [mrkLight1, mrkLight2, mrkLight3, mrkLight4]; MissionIntro = [] spawn { ["BIS_blackStart", false] call BIS_fnc_blackOut; playMusic "EventTrack02a_F_EPB"; [[["DEFUSE THE BOMB","<t align = 'center' shadow = '1' size = '1' font=PuristaBold'>%1</t><br/&gt], ["Assault the hangar and search the laptops for the code.","<t align = 'center' shadow = '1' size = '0.7'>%1</t><br/>"], ["If you are detected the bomb will arm.","<t align = 'center' shadow = '1' size = '0.7'>%1</t><br/>"]],0,0,"<t color='#FFFFFFFF' align='center'>%1</t>"] spawn BIS_fnc_typeText; sleep 15; ["BIS_blackStart", true] call BIS_fnc_blackIn; }; waitUntil {scriptDone MissionIntro}; //Lightning Effects [] spawn { while {true} do { private ["_position","_height","_distance","_direction"]; _position = position player; _height = 50; _distance = 350; _direction = random 360; _position set [2, _height]; [_position, _distance, _direction] spawn BIS_fnc_thunder; sleep (30 + random 10); }; }; [] spawn { waitUntil {DEFUSED}; ["Task_Defuse", "Succeeded"] call BIS_fnc_taskSetState; sleep 2; ["end1", true] call BIS_fnc_endMission; }; [] spawn { waitUntil {ARMED}; ["Task_Defuse", "Failed"] call BIS_fnc_taskSetState; sleep 10; ["LOSER", false] call BIS_fnc_endMission; };
  2. Hey, how can I create a task, which set to successful when a unit (or me) get in a car? greets
  3. shik4ri

    AddAction problem

    Okay, got it. But next problem. to set play a sound and delet it I need to klicks in the action menu on the item. Is something like this possible? like playsound and set call awnserd = true
  4. Hey Guys! I want to create a Singleplayer Mission. Your first task is to reach a camp. When u reach the Camp, a Cellphone starts to ring (Trigger, say3D). The ringtone should stop when u act with "Awnser". Then, the next soundfile should start.The caller talks to the person who accept the call. Next task is a meeting with the caller. Any Ideas? Greets ---------- Post added at 19:53 ---------- Previous post was at 19:24 ---------- Question is: how can I stop the say3D soundfile with Addaction "Awnser the Call".? The say3D sound starts with an trigger [player distance cellphone<5];
  5. Hi, I need help with my Addaction script :/ I use the script in my COOP-02 Mission. //soldier that will have this useraction added _soldier = _this select 0; //defineing the condition variable [false since radio not jet faund by player] RADIO_FOUND = false; //adding new action to unit _my_new_action = _soldier addAction ["Use Cellphone", "RADIO_FOUND = true;"]; //loop to check if the action has been used by user and then removed if so while {true} do { If (RADIO_FOUND) Then {_soldier removeAction _my_new_action}; If (!alive _soldier) ExitWith {}; sleep 1.0; }; With this version of the Script, both players have to use "Use Cellphone" to to activate RADIO_FOUND = true, but I want that player1 OR player2 use the action to turn RADIO_FOUND to true. Thank you guys!
  6. Hey, Ive created "two missions" to combine them. In the first part, I still set all objects. In the other part I create the briefing (tasks, trigger etc.). When I combine them, my frames drop to 10 and raise to 30 every 5 seconds. Normally I got about 30 frames. Independently of each other they work fine, no lags, no problems. BUT! When I combine the briefing part with any other mission Ive created before, its works. No dropping frames.. ???:confused: Any idea guys? Thank you ---------- Post added at 11:56 ---------- Previous post was at 11:24 ---------- I guess the addaction script, collect script and download-laptop script doesnt react well to a lot of objects in the map??? Ive set hundrets of objects into the briefing part mission -> same problem, frames went from 50-70, again and again.. ---------- Post added at 12:47 ---------- Previous post was at 11:56 ---------- Its the BTC - Revive script! But dont know why...
  7. shik4ri

    Respawn Tents

    Yeah I Know. I exported it to singleplayer-missions and played it as a singleplayer-missions. Then set the respawn tent and throw frag on the bottom in front of me -> suicide. But game says mission failed. :/
  8. shik4ri

    Respawn Tents

    Hey, your example mission doesnt work for me? Mission failed when I die - but tent/sleeping bag is set.. Any idea?
  9. Hey, yeah sorry. I joined the "bistudios" just 1 hour ago and I can't find any button to start my own thread? :/
  10. Hi everyone, can somebody explain me how to use the "Respawn-Camp/Sleeping-Bag - Backpacks" in the editor? :confused:
×