Jump to content

Joe98

Member
  • Content Count

    902
  • Joined

  • Last visited

  • Medals

Community Reputation

57 Excellent

1 Follower

About Joe98

  • Rank
    First Sergeant

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

1239 profile views
  1. If there are 5 cars racing, they could finish in any order. There are 120 possibilities as to the finishing order. Place 120 triggers on the map. Each trigger represents the 120 possible finishing order. Each trigger has a hint, listing the finishing sequence of the 5 cars. Each trigger can only be fired by one car. In other words, each car can fire 24 triggers. As the first car crosses the finish, it fires a trigger which deletes all the triggers, with a hint saying that any of the other cars came first. As the second car crosses the finish, it fires a trigger which deletes all the triggers, with a hint saying that any of the other cars came second As the third car crosses the finish, it fires a trigger which deletes all the triggers, with a hint saying that any of the other cars came third etc etc Finally you are left with one trigger and the hint in the trigger lists the correct sequence that the cars finished. Presto! PS: If a car fails to finish there will be no result. So you need more triggers at the finish. Those triggers are fired after a given time and only when a given car is not present. This leads to another list of hints.
  2. You could put a trigger at the destination.
  3. I had an issue where, when the final enemy soldier was killed, the mission ended abruptly. I wanted to hold the tension to make players think that there were more enemy around! I needed 2 conditions to end the mission: That we occupy the position and that all the enemy are dead. My solution: Place 2 boxes on the map: box1 box2 When all the enemy are dead, this fires a trigger that deletes box1. When we occupy the position, this fires a trigger that deletes box2. The 2 conditions are now met. They can be met in any order. However I do not want the mission to end abruptly. When both box1 and box2 are deleted this fires a trigger that ends the mission. This trigger has a timer that lasts about 30 seconds. This holds the tension and allows my men time to take cover - except that after 30 seconds that trigger fires and with a message that the mission is over. Whew! You might be able to use this so that your mission does not end abruptly. .
  4. I have a set of notes on how to use the editor. The notes date back to Arma2 days. Here is an extract from my notes: Now we are going to create triggers to end the scenario. The first ending is that you have killed the Opforce soldier. Select “F3 Triggers” and double click on the map. Name this trigger “Opforce_killed” From the drop down select “ending 1” In the cell named “ Condition" type (!alive Red1) including the brackets The second ending is that you are killed Select “F3 Triggers” and double click on the map. Name this trigger “I_Am_killed” From the drop down select “ending 2” In the cell named “ Condition" type (!alive Blue1) including the brackets The third ending is that the mission ends after 2 minutes. Select “F3 Triggers” and double click on the map. Name this trigger “Out_Of_Time” From the drop down select “ending 3” In the cell named “ Condition" type time > 120 .
  5. Place the vehicle on the map. Using your mouse, lift the vehicle X meters above the ground. Click on the vehicle and obtain the vehicles coordinates. There are 3 coordinates: North-South, East-West, Above-the-Ground Now place a trigger on the map. The trigger has a command: car1 setpos coordinates. When the trigger fires, the car will be teleported to the position above the ground. Obviously it will then fall to the ground.
  6. Place an enemy soldier on the map and name him red1 Now write a command: red1 move getPos player; red1 setCombatMode "RED" The enemy will find you and kill you. This works with enemy soldiers, helicopters tanks and everything else. The problem is that when you move to another location, the enemy will always go to your original location. You need the command to start over and over again. The solution: Place a man on the map in an out of the way place. Place waypoints so he runs through a trigger. Place a cycle waypoint so he turns around and runs through the trigger again. He will now run through the trigger over and over again in a never ending loop. In the Activation field of the trigger type the command: red1 move getPos player; red1 setCombatMode "RED" In the Deactivation field of the trigger type the same command: red1 move getPos player; red1 setCombatMode "RED" When the trigger is activated the command is run. When he runs out of the trigger, the trigger is deactivated, the command is run again. In your testing, you need to find out just where the trigger deactivates. If the trigger does not deactivate, then this will not work. So use the command: hint "trigger ON ON ON" and hint "trigger OFF OFF OFF .
  7. Joe98

    Position in house

    Place a man on the map (you) Place a second man on the map, on a floor as you said. Make the second man "playable" Start the scenario and jump into the shoes of the second man. Make sure he is alive and healthy, that he is not stuck in a wall, not stuck in the floor and he is in exactly the correct position. If he is not, then make corrections. Now find other positions and repeat the process. You might finish with 10 positions. Name your 10 enemy soldiers, red01 through red10 Now we write a script if (random 100 < 50) then {deletevehicle red02}; /// to delete red02 at random if (random 100 < 50) then {deletevehicle red03}; /// to delete red03 at random if (random 100 < 50) then {deletevehicle red04}; /// to delete red04 at random if (random 100 < 50) then {deletevehicle red05}; /// to delete red05 at random if (random 100 < 50) then {deletevehicle red06}; /// to delete red06 at random if (random 100 < 50) then {deletevehicle red07}; /// to delete red07 at random if (random 100 < 50) then {deletevehicle red08}; /// to delete red08 at random if (random 100 < 50) then {deletevehicle red09}; /// to delete red09 at random if (random 100 < 50) then {deletevehicle red10}; /// to delete red10 at random At least one enemy must be on the map so we cannot delete red01. As a result, there will be any number of enemy from 1 to 10 and you will never know how many there are! Not only that, you might find 20 positions and each man starts at one of 2 positions at random. Find something tiny like a small stone. Place 10 of them on the map. Set each one so it will start at one of 2 positions at random. for example red01 might start by with "red01 setpos getpos stone01" With this, you get 20 positions and a maximum of 10 enemy soldiers starting at any of the 20 positions at random. 😊
  8. Joe98

    Random Vehicle Spawn

    The other way to do this, is to place 50 bikes on the map. Place them along a road in an out of the way place. Then, when a trigger fires, one bike is moved to a random position - bike01 setpos getpos stone1 - and ensure the stone starts at a place at random. Do this with 50 triggers, 50 bikes and 50 stones. .
  9. Click on the item and drag the item up or down. OR: Click on the item and note the properties. An item is placed in 3 dimensions: North-South East-West Up-Down. Change the number in the Up-Down dimension.
  10. To the OP, I read your and I have to presume that you are trying to get artillery, controlled by the AI, to fire on you and other friendly players. People have had no end of trouble with this. An other solution, is to use artillery shells, or mortars or aircraft bombs, and have them explode near you or away from you at random.
  11. Place yourself on the map and name yourself blue1 Place an enemy soldier on the map and name him red1 In the init of the enemy soldier type this: red1 move getPos player; red1 setCombatMode "RED" Test 1: start the mission and remain stationary. The enemy will move to your starting position and kill you Test 2: start the mission and run away. The enemy soldier will run to your starting position…….and as you are not there he will stop So, we need to find a way, so that the enemy soldier always knows your current position. We do it like this: Place a civilian in an out of the way position on a flat road or on a runway. I strip him of weapons and ammo so he is not carrying a load. Place a trigger on the map. Set some waypoints and a cycle waypoint. He will run through the trigger and activate the trigger. He needs to keep running till the trigger deactivates. As soon as it deactivates he turns and runs through the trigger again. He does this over and over again. Place this command in the activation cell, and place the same command in the deactivation cell: red1 move getPos player; red1 setCombatMode "RED" So, start the mission and immediately run away. Everytime the civilian activates the trigger, or deactivates the trigger, the enemy soldier knows your new position. I have had a lot of fun with this. If the enemy has a handful of soldiers you cannot escape because you cannot look in every direction at once. If the enemy unit is a small chopper escape is difficult. Fun! .
  12. Name yourself blue1 Name your friend blue2 You will start at 3 places at random At each of those places create a trigger. Each trigger is fired by you and fired once only In the int of each trigger is a command: blue2 setpos getpos blue1 You start in a random place, you fire the trigger, he is instantly transported next to you. .
  13. As a test, instead of spawing arty, place the arty on the map, run your script and see if the script works then.
  14. I am going to place a car on the map. The car has no crew. I name the car car1 How do I get artillery to target this car? (presume the same shells as in the example above). .
×