Jump to content

Joe98

Member
  • Content Count

    1052
  • Joined

  • Last visited

  • Medals

Everything posted by Joe98

  1. Click on the marker. It has X,Y and z coordinates.
  2. Joe98

    Spawn Fire Support on Smoke?

    How do you fire the smoke in the first place? .
  3. Actually I name the leader blue1, but I didn't want to confuse the OP
  4. Which script command is a variable?
  5. Name the leader "leader". Name the first subordinate blue2 blue2 setpos getpos leader Causes blue 2 to teleport to the location of leader
  6. Joe98

    Cycling Waypoints

    How about just use waypoints without scripting?
  7. Place the box on the map with the correct contents. Then teleport the box to the destination via a trigger.
  8. The issue here is grammar, not scripting. I now see the above was a typo. I was responding to a typo.
  9. So now I think you are trying to say: In single player there is only one player and therefore "player" works. Whereas in multi player there is more than one player therefore "player" could mean anybody so the specific person needs to be defined. Originally I thought ""Item_keys" was the command that would not work in multiplayer. Doh! .
  10. I am always amazed that some commands do not work in multiplayer.
  11. Joe98

    Attack direction

    Place markers on the map so they spawn on the markers. Place the markers so they spawn at random on one of the markers.
  12. I have 5 scripts: location0.sqf location1.sqf location2.sqf location3.sqf location4.sqf I walk into a trigger and this runs another script named head1.sqf How do I write a script that selects one of the 5 scripts at random. .
  13. Joe98

    Syntax question for hints

    Structured text. Even I know how to use this. https://community.bistudio.com/wiki/Structured_Text .
  14. You see (he says referring to the other thread) it is easy to give a accurate instruction thank you 🙂 And now somebody else can utilise this in their mission.
  15. To are helping to make my point. If I use the underscore, then it will only run on my computer. If I upload the mission, nobody else can play it. If I don't use the underscore, the I can upload the map and anybody can play it on their computer. And yet above you gave 2 examples and you chose to include the underscore. Anybody who follows your example, and uploads the mission, will have a failure and then leave the forum and the game in frustration.
  16. Yes I agree. And yet and yet and yet and yet. It lists the scripts horizontally. When listed vertically it is much easier to read. It is easier to come back 6 months later and know what it means. it is easier to copy and paste 5 rows and then amend one number in each row. Fun is playing pretend soldier and shooting Ai targets. .
  17. I do not understand a word of that. Therefore, is this the right code? __box1 hideObject true; And what in the world is the underscore for?
  18. If you read the Biki entry for hideObject you will see that the alternate syntax allows one to "unhide" an object. _obj hideObject true; // hide object _obj hideObject false; // unhide object If the object is named box1 how would you write the code?
  19. This is a game. It is meant to be fun and not work. Many people have stated that they dropped the game and left the forum because they were given complex answers they don't understand. Larrow's code is complex and I don't understand. I am not going to study it because that would be work and not fun. Your script uses fewer characters than the one I found. However, your script still lists all the individual scripts. But the list is horizontal. The way I have done it the list is vertical. I can come back in 6 months, glance at the code and know exactly what it does. .
  20. To hide an object, named for example box1, the command is hideobject box1 I don't know how to unhide an object. Neither "show" nor "unhide" appear in the scripting commands. I am sure there is a way.
  21. _rNum = selectRandom [1,2,3,4,5]; if ( _rNum == 1 ) then { execVM "script1.sqf"; }; if ( _rNum == 2 ) then { execVM "script2.sqf"; }; if ( _rNum == 3 ) then { execVM "script3.sqf"; }; if ( _rNum == 4 ) then { execVM "script4.sqf"; }; if ( _rNum == 5 ) then { execVM "script5.sqf"; }; I confirm this works beautifully thank you. It does exactly as I intended. There is no code to post as such. I have a mission with a lot of random elements so that it plays differently every time. Except that the hints are the same. In effect they give the game away. So, by having a number of different hints selected at random, the hints no longer give the game away.
  22. I did find another way and I don't understand this either. I don't understand the underscore at the beginning. I have copied this from an old thread by somebody else. _rNum = selectRandom [1,2,3,4,5]; if ( _rNum == 1 ) then { execVM "script1.sqf"; }; if ( _rNum == 2 ) then { execVM "script2.sqf"; }; if ( _rNum == 3 ) then { execVM "script3.sqf"; }; if ( _rNum == 4 ) then { execVM "script4.sqf"; }; if ( _rNum == 5 ) then { execVM "script5.sqf"; }; Would I place all of that in a script? .
  23. Thank you but I do not understand that. .
  24. Joe98

    How to Play a random sound from a list

    If you have for example 6 sounds, then write 6 scripts. Each script plays one of the sounds Your scripts might be named: sound0 sound1 sound2 sound3 sound4 sound5 Then you write a 7th script that selects a script at random. (I have been meaning to ask over here how to do that. I saw a script years ago but did not keep a record). .
×