Jump to content

Valixx

Member
  • Content Count

    100
  • Joined

  • Last visited

  • Medals

Everything posted by Valixx

  1. Valixx

    Hint parseText global

    NOTE: It is only a suggestion, try it..if it won't work, revert it. _Cscomunicaciones = format ["<t align='center'>...</t>"]; GlobalHint = _Cscomunicaciones; publicVariable "GlobalHint"; hintsilent parseText _Cscomunicaciones; _scomunicaciones = format ["<t align='center'>...</t>"]; GlobalHint = _scomunicaciones; publicVariable "GlobalHint"; hintsilent parseText _scomunicaciones;
  2. Valixx

    1-2 FPS on Altis and 60 fps on stratis.

    Read my post again. I'm talking from both maps, not only from one.
  3. Valixx

    1-2 FPS on Altis and 60 fps on stratis.

    Whatever they did, now the performance on my brother's pc is horrible. From normal 30-40 fps down to 0-10 fps on both Maps without changing anything...
  4. Valixx

    =BTC= Revive

    With the new system activated, you don't respawn with your latest gear. You'll get the standard starter gear.
  5. Hey guys. I got some signs spawning vehicles and stuff and when my brother spawns a vehicle, i get the hint also. Maybe someone could help me out. Code for the vehicle spawn hint: _vehHint = format ["<t align='center' color='#40E0D0' shadow='2' size='1.75'>%1</t><br/><br/><t align='center'><img size='5' image='%3'/></t><br/><br/>%1 has been spawned. You have %2 seconds to board it!<br/><br/>You can teleport to your vehicle using the teleport sign. Choose: Teleport to Vehicle Respawn", _vehName, _delay, _image]; GlobalHint = _vehHint; publicVariable "GlobalHint"; hintsilent parseText _vehHint; Secondly, i got a random mission script and after the mission is announced per hint it didn't disappear on my brothers pc. Code for the mission spawn hint: _smhint = format ["<t align='center' color='#ffffff' shadow='2' size='1.75'>Side Objective</t><br/><t align='center' color='#000000'>------------------------------</t><br/><br/><t align='center'><img size='5' image='%1'/></t><br/><br/><t color='#ffffff' size='1.0'>Capture the MK-6 Mortar and use it to your advantage.</t>", _image]; GlobalHint = _smhint; publicVariable "GlobalHint"; hintsilent parseText _smhint; I got this in my folder too: //ENABLE GLOBAL HINT from Occupation by BangaBob "GlobalHint" addPublicVariableEventHandler {private ["_GHint"]; _GHint = _this select 1; hint parseText format["%1", _GHint]; }; "GlobalSideChat" addPublicVariableEventHandler {private ["_GSChat"]; _GSChat = _this select 1; player sideChat _GSChat; }; Would be awesome if someone could figure it out. :) Cheers, =ADG=Valixx
  6. Valixx

    SHK_Taskmaster

    Ah okay, great. Thank you Shuko. Cheers, =ADG=Valixx ---------- Post added at 10:25 ---------- Previous post was at 10:03 ---------- Got a quick question though. The task is not updating if i do it this way: private ["_task01"]; _task01 = ['Task1','succeeded',['Task2','Kill Johns Brother.','Kill Johns Brother. He is a HVT.', true, ['mrktask2', getPos _taskTrigger02, 'hd_objective', 'ColorRed', 'Enemy 2'], 'assigned', getPos _taskTrigger02]] call SHK_Taskmaster_upd; _taskTrigger01 setTriggerStatements ["!alive John01", "_task01" , ""]; These are only the bits of code that are relevant, i think. Cheers, =ADG=Valixx
  7. 1. Got it. 2. Yep, using the global hint function. Cheers, =ADG=Valixx
  8. Thank you kylania. Now i understand the publicVariable thing :P Out of curiosity, how should i approach for the opposite? That only the player sees the hint. ( Comment the publicvariable out, right?). The second question: To make a hint disappear i'd build in a sleep and put hint "";? Cheers, =ADG=Valixx
  9. Valixx

    SHK_Taskmaster

    Hey. In line 309 of your file, you got if (_cond in ["USMC","INS","CDF","RU","CIV","GUE","CIV_RU"]) then { Can i change that to the Arma 3 units without messing it up?
  10. Thanks kylania. I've commented the publicVariable out. How do i approach the second problem with the hint? If the sidemission gets announced, the hint did not disappear at my brothers pc. Sry if the questions seem stupid to you but i got a blockade in my brain right know :P
  11. Quick question: To name a group, you go to the group leader's init box and type: groupname = group this; ? And then you can call it with your code above.
  12. Oh man, that's a huge help. Can't thank you enough for this! 1a and 1b are looking so easy... I'm still confused that i didn't get this on my own :butbut:
  13. Valixx

    =BTC= Revive

    Happens to me to..
  14. Thanks larrow. ---------- Post added at 10:48 ---------- Previous post was at 10:01 ---------- _trg = createTrigger ["EmptyDetector", getMarkerPos _marker]; _trg setTriggerArea [200, 200, 0, false]; _trg setTriggerActivation ["EAST", "NOT PRESENT", false]; _trg setTriggerStatements ["this", "_enemyDead = true;", ""]; _enemyDead = false; while {!(_enemyDead)} do { { if (/*what should i put here to check the trigger?*/) then { _enemyDead = true; }; } foreach playableUnits; sleep 0.5; }; deleteMarker _marker; _null = ["mob_infa", "SUCCEEDED"] spawn BIS_fnc_taskSetState; I know i have something wrong here but can't figure it out. Studying web-design, learning sqf at the same time..... i'm going nuts..
  15. Valixx

    detect heal/healer

    wtf are you talking about? :D Well, i can speak/read german but arma 4? typo?^^
  16. Hey. Got a little question. //set a default variable to change for mission status _missionDone = false; //while the mission is not done while {!(_missionDone)} do { //loop around all playable units (playable is human and AI that are in a slot in the lobby) { //if any of playable are within the distance if ((_x distance art) < 10) then { //set mission as done (while loop will now finish _missionDone = true; }; }foreach playableUnits; //trigger check their condition every 0.5 so this is similar sleep 0.5; }; I spawn two enemy infantry groups. What should i change in "if ((_x distance art) < 10)" to "if enemies are dead or no enemie in area"? I hope you can help me out here. Cheers, Valixx
  17. Valixx

    addmagazine backpack

    As far as i know you have to use playableUnits to add the magazine to all playable units. Sry i'm not a pro in scripting, you have to wait for more experienced users for a ready-to-go script^^ Maybe: if (side playableUnits == WEST) then { your code } forEach playableUnits; Again, it's just a suggestion.
  18. Hey guys, i got some problems with my mission atm. 1. I'm using the "support provider: artillery ( virtual )". Everything works fine in the mission. But the following error shows up on the start of the mission. 2. I want to show images of the respective vehicle in the hint for my side missions. The first code block is the hint: _smhint = "...<t align='center'><img size='5' image='%1'/></t>...", _image; I've defined the image: // vehicle _veh = ["B_Mortar_01_F","B_Mortar_01_F"] call BIS_fnc_selectRandom; //image _image = getText (configFile >> "cfgVehicles" >> typeOf _veh >> "picture"); In the game i get this message: 3. I set up some mission parameters to choose from in the lobby. //description.ext class Params { class TimeOfDay { title = "Time Of Day"; values[] = {1, -8, -6, 0, 8, 13, 2}; texts[] = {"Random", "Early Morning", "Morning", "Noon", "Sundown", "Night with Full Moon", "Dark Night"}; default = -6; }; class Weather { title = "Weather"; values[] = {2, 0, 3, 0.5, 0.75, 1}; texts[] = {"Random", "Clear", "Partly Cloudy", "Cloudy", "Overcast", "Storm"}; default = 0; }; }; //init.sqf skipTime TimeOfDay; This error appears: Problem 2 & 3 are new to me so please bear with me. ( scripting.. )
  19. Everything is working right now. I needed only one Support Requester Module, not two. Thanks again!
  20. Yep edited the text a few seconds before your answer. Found the mistake myself. Thanks anyway :)
  21. 1. That's how i synced: Artillery: Module Support Provider: Artillery (Virtual) -> Module Support Requester -> Squad Leader. Helicopter Transport: Helicopter -> Module Support Provider: Helicopter Transport -> Module Support Requester -> Squad Leader The Support Requester Modules are used for both Support Provider Modules. 2. Got it working now. nvm.
  22. Hey mindstorm. Thanks for your answer. 1. There is no script. It is the module from the editor. So BIS has to fix it then? 2. Here's the code for the formating etc. Sry for not providing it earlier. //globalTools.sqf "GlobalHint" addPublicVariableEventHandler {private ["_GHint"];_GHint = _this select 1;hint parseText format["%1", _GHint]; }; _smhint = "...<t align='center'><img size='5' image='%1'/></t>...", _image; GlobalHint = _smhint; publicVariable "GlobalHint"; hintsilent parseText _smhint; 3. Thank you.
  23. Thank you Larrow. I've disabled the AI and the players will always be Blufor. I'll do the change in the code tomorrow. 11PM now and i have to get up early.. Thanks again, it's a big help!
  24. Hey Larrow, thanks for your answer. Currently i'm testing the mission on lan with my brother. Once my mission is finished, it will be hosted on my server ( see signature ) hosted by nitrado.net. I'm currently working on the mission for over 2 weeks straight now. Wouldn't be far without you and kylania :P Yep, we are are west versus east. So.. instead of player in my scripts i could use west / playableUnits?
×