Arma 3
114 ψήφοι
Abandoned Roads (Simple Script)
   
Βραβείο
Αγαπημένο
Αγαπημένο
Μη αγαπημένο
Data Type: Scenario
Scenario Gameplay: Singleplayer
Scenario Map: Altis
Μέγεθος αρχείου
Αναρτήθηκε
Ενημερώθηκε
7.481 KB
20 Σεπ 2018, 3:26
22 Σεπ 2018, 5:10
3 σημειώσεις αλλαγών ( προβολή )

Συνδρομή για λήψη
Abandoned Roads (Simple Script)

ΣΕ 1 ΣΥΛΛΟΓΗ ΑΠΟ Asaayu
Asaayu's Missions
4 αντικείμενα
ΠΕΡΙΓΡΑΦΗ
Abandoned Roads is a script that creates trash, garbage and wrecks around the roads on the map to increase players immersion

If you enjoy this script make sure to rate up and favourite!


Get a copy of the files here: https://github.com/Asaayu/Abandoned-Roads

This script creates thousands of objects around the map, luckily all of the objects created in this script are simple objects.
Read more about simple objects here: https://community.bistudio.com/wiki/Arma_3_Simple_Objects#Performance


Installation

To install the script go to the GitHub page: https://github.com/Asaayu/Abandoned-Roads

Download a copy of the files and add the initServer.sqf to your mission. (Or your mission's initServer.sqf if it already has one) You can edit this to change the percentage of items that spawns in your mission.

Copy the AbandonedRoads folder to your missions root directory (The same place as the mission.sqm)

Start your mission to confirm that the script works correctly.


Example

Put the following into your initServer.sqf
[
15, //======= 15% for trash
5, //======= 5% large trash
3, //======= 3% wrecks spawn
[ //======= Array containing a postion and range from postion
[
[10,10,0],15
],
[102,150,0],12
]
]
] execVM "AbandonedRoads\init.sqf";
86 σχόλια
Asaayu  [Δημιουργός] 12 Μαϊ 2023, 19:33 
@ZERO COOL
Thank you 😄
GOMERSGOOD 12 Μαϊ 2023, 9:31 
_dir = selectRandom [25,-25];
_location = _x modelToWorld [_dir,0,0];
?
GOMERSGOOD 12 Μαϊ 2023, 9:30 
Asaayu i love this script, used it for a while now, thank you for your immersive contribution.

i wanted to give you and anyone else that might want to use it, a line of code that moved the trash on the road just a BIT to the side, to allow AI and other players to see it but not hit each one.

the results move each trash item a bit to the left or right of the middle of the road

changed this>
_location = _x getRelPos [floor random 3,floor random _dir];
to this>
_location = _x modelToWorld [25,0,0];

im busy but i wanted to randomize it too with 25 or -25 so it will move it either left or right of the middle of the road.
ill upload what i come up with when i do
✪ yeai 9 Σεπ 2021, 10:29 
@Asaayu

Appreciate it.
Asaayu  [Δημιουργός] 9 Σεπ 2021, 7:10 
@o
In the script change the "private _roads = [worldSize/2,worldSize/2] nearRoads worldSize;" line. that will change what roads are effected by the function.
✪ yeai 9 Σεπ 2021, 6:12 
@Asaayu

Is it possible to make the wreckage and garbage spawn only within trigger area?
Asaayu  [Δημιουργός] 7 Ιουλ 2021, 15:26 
@sooz
You can increase the chance of a vehicle being spawned. That would increase the amount of wrecked vehicles.
✪ yeai 5 Ιουλ 2021, 12:32 
Is there any way to increase the amount of wrecked vehicles on the roads?
Asaayu  [Δημιουργός] 20 Ιουν 2021, 23:00 
@GilliganTrevor93
No, when you call the function just append your array of positions and ranges to the forth item in the function parameters.
GilliganTrevor93 18 Ιουν 2021, 15:46 
hi quick question how would one use the blacklist area do we place marker and name it?