-
Content Count
1052 -
Joined
-
Last visited
-
Medals
Everything posted by Joe98
-
Making object start a mission in a random discrete location
Joe98 replied to racercowan's topic in ARMA 3 - EDEN EDITOR
Click on the marker. It has X,Y and z coordinates. -
Spawn Fire Support on Smoke?
Joe98 replied to Snipes McKinley's topic in ARMA 3 - MISSION EDITING & SCRIPTING
How do you fire the smoke in the first place? . -
Teleport squadmembers to squad leader
Joe98 replied to Nuxes's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Actually I name the leader blue1, but I didn't want to confuse the OP -
Teleport squadmembers to squad leader
Joe98 replied to Nuxes's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Which script command is a variable? -
Teleport squadmembers to squad leader
Joe98 replied to Nuxes's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Name the leader "leader". Name the first subordinate blue2 blue2 setpos getpos leader Causes blue 2 to teleport to the location of leader -
How about just use waypoints without scripting?
-
scripting Custom ammo box contents when spawned
Joe98 replied to Cooks Corner's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Place the box on the map with the correct contents. Then teleport the box to the destination via a trigger. -
Help, trying to make a vehicle unlock if you have a key in your inventory...
Joe98 replied to PlatinumFIVE's topic in ARMA 3 - MISSION EDITING & SCRIPTING
The issue here is grammar, not scripting. I now see the above was a typo. I was responding to a typo. -
Help, trying to make a vehicle unlock if you have a key in your inventory...
Joe98 replied to PlatinumFIVE's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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! . -
Help, trying to make a vehicle unlock if you have a key in your inventory...
Joe98 replied to PlatinumFIVE's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I am always amazed that some commands do not work in multiplayer. -
Place markers on the map so they spawn on the markers. Place the markers so they spawn at random on one of the markers.
-
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. .
-
Syntax question for hints
Joe98 replied to Gamer-3ac24a5e7f4beb96's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Structured text. Even I know how to use this. https://community.bistudio.com/wiki/Structured_Text . -
How to select a script at random?
Joe98 replied to Joe98's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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. -
Hide object1 when object2 is destroyed
Joe98 replied to mzgr's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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. -
How to select a script at random?
Joe98 replied to Joe98's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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. . -
Hide object1 when object2 is destroyed
Joe98 replied to mzgr's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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? -
Hide object1 when object2 is destroyed
Joe98 replied to mzgr's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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? -
How to select a script at random?
Joe98 replied to Joe98's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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. . -
Hide object1 when object2 is destroyed
Joe98 replied to mzgr's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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. -
How to select a script at random?
Joe98 replied to Joe98's topic in ARMA 3 - MISSION EDITING & SCRIPTING
No -
How to select a script at random?
Joe98 replied to Joe98's topic in ARMA 3 - MISSION EDITING & SCRIPTING
_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. -
How to select a script at random?
Joe98 replied to Joe98's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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? . -
How to select a script at random?
Joe98 replied to Joe98's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thank you but I do not understand that. . -
How to Play a random sound from a list
Joe98 replied to Gamer-3ac24a5e7f4beb96's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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). .