Jump to content

TheMcDeth

Member
  • Content Count

    41
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About TheMcDeth

  • Rank
    Lance Corporal
  1. TheMcDeth

    How can i turn off the streetlights

    Anyone know if the lights are reset at the start of a mission? At least earlier if you switched the lights off, they would remain off also in the next mission on the same island... I would recommend to destroy the lights... object ##### setdammage 1 At least for the lights in FDF East Border it was enough to set dammage to 0.5 to shut them off. Don't know if Goeth used some special lights in that island though.
  2. TheMcDeth

    What grabs you most about a campaign/mission?

    Realism, realism, realism and realism. Modern infantry firefights do not cause huge amount of dead bodies lying everywhere. Only the civilians are killed in hundreds. I would say that main thing to accomplish realism is to reduce the amount of enemies. Make them run away more easily if they do not like the odds. Increase skill of enemies and place them in difficult places so they have cover. Use the enemies intelligently and maybe try to use scripts that give AI's a little bit more brains.
  3. Trigger with activation "civilian not present" does not work? Strange... Anyway you can name the units and make an array of the names. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> (?!local server):exit #loop _units=[c1,c2...cn] ~10 _i=0 "if (alive _x) then {_i = _i + 1}" foreach _units ?_i > 0 : goto "loop" var=1 publicvariable "var1" exit This script is run only on server. So add gamelogic and name it "server" and run this script from init.sqs. Then add a trigger to check the status of var1 and execute whatever you want. It does not matter if some of the units in the _units array are there or not. It will work anyway.
  4. TheMcDeth

    Variables in briefing?

    It reguires work, but maybe it is somehow possible to do something for the briefings. As far as I know all that you can change is objectives. I once made a mission with 5 objectives that were selected by random. It requires the following steps to accomplish that: 1) Create mission markers that you need 2) Create Briefing with multiple objectives 3) Create script that selects one of the objectives by random - This script hides other objectives and moves markers to desired positions 4) Create script that checks if the objective has been accomplished Works well with a&d missions, but never tried it in coop or any other mission type. Problem is that you need to put lot of effort into building the briefing and makin sure all markers are in position etc. But the biggest pain in the ass is to figure out which scripts to run locally on each side and which only run on server
  5. TheMcDeth

    Helicopter pickup

    This script requires the following objects in the mission: Soldiers named f1...f20 Game logics named: Server, raah, home Chopper named heko (set flying without any waypoints) Trigger to activate the script Move Gamelogic raah where you want the chopper to pick up the squad and gamelogic home to where you want them to go.
  6. TheMcDeth

    Good editing practices

    Also you might want to think is it always necessery to run all scripts locally or should they be run only on server. Using publicvariable broadcasts things to all clients so it is not necessery always to run scripts everywhere. Also you can set the wait for loops even higher than 0.5 - 2. I use ~10 quite commonly for things that are not very urgent. One thing that I have been wondering about is that should sometimes scripts be used instead of triggers. For example if you want to check if certain targets are destroyed or not, you could do this in a server side script with for example~10 wait easily. Or you can do this in a trigger. Which one is more CPU friendly? Also does it make more sense to run many things in one script or should one try to accomplish as many things as possible in one script. Combining multiple scripts into one makes them more difficult to make reusable in other missions.
  7. TheMcDeth

    Problem with variable types

    Thanks to all who helped me. I reduced the length of one code to about 15 % of the original. When I use the same code in many missions I now have a very easy job of editing the code for each mission.
  8. TheMcDeth

    Problem with variable types

    Thanks. I have to try it when I get back home in the evening. I thought there must be easier way than what I was trying.
  9. I tried combining names in a script as follows <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> target="v"+format["%1",raah] raah is an integer from 1 ... 10 I then have 10 different objects in a mission named from v1 .. v10 I then checked that the combining of the number and letter is correct in hint dialog <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">hint format["%1",target] When I try to use the "target" variable in another command I get an error message about the variable being a string and not object. So my question is can I change a type of a variable from string to object? Or are there any other possibilities to achieve the same
  10. TheMcDeth

    Outro hitches

    I have no other idea to change the time than using skiptime. The only drawback of skiptime is that you have the duration of the mission changed in the debriefing.
  11. Thanks for the help... I think I finally solved it by just simply defining the objectives correctly and hiding unnecessery objectives. So the mission works like this: Attackers have 5 alternative objectives and one is selected randomly. All objectives are hidden and correct one is then activated. Also the target markers are moved to the correct positions. Defenders on the other hand have no idea what is the real objective of attackers. Since all the possible targets are in a relatively small area the defenders have to divide the forces more realistically around the designated area.
  12. I am planning a somewhat different approach for a&d mission and I would like to know if it is possible to make two or more different briefings for one mission. Also is it possible to show different intros for Resistance and East players? I was thinking something like below... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ?(side player)==resistance : goto "res" player exec "rusintro.sqs" exit #res player exec "resintro.sqs" exit Third possibility is to give orders with radio commands in beginning of the mission. But I would like to avoid this if possible, since some players just never seem to listen or pay attention...
  13. TheMcDeth

    Scripts/triggers in coop

    Create trigger with type End #1 or whatever number you want. Then syncronize or group (don't remember which it was... so test it) the trigger with the pilot.
  14. Well tried it yesterday with FDF East Border Island and it worked fine. It does have an annoying delay though...
  15. I would recommend against switching streetlights off. When you switch them off, they will remain off, even in the next mission you play. So one way to go around this to damage the lammpost. object <id of object> setdammage 0.5 That will damage the lamp and "switch" it off. Downside of this method is that there will be a delay when the lights are switched off...
×