Arma 3 Public Zeus: How to spawn forests
Use code line:
for "_i" from 1 to 10 do {
private _randomRot = [0,360] call BIS_fnc_randomInt;
private _tree = selectRandom ["a3\plants_f\tree\t_pinuss1s_f.p3d","a3\plants_f\tree\t_pinuss2s_b_f.p3d","a3\plants_f\tree\t_pinuss2s_f.p3d"];
private _location = getPosASL this;
private _RanPosx = (sin (random 360)) * (random 30);
private _RanPosy = (cos (random 360)) * (random 30);
private _object = createSimpleObject [(_tree), (_location), false];
[_object, [_randomRot,0,0]] call BIS_fnc_setObjectRotation;
_object setPosASL ([(_location select 0) + _RanPosx,(_location select 1)+_RanPosy,(getTerrainHeightASL[(_location select 0) + _RanPosx,(_location select 1)+_RanPosy])]);
};
deleteVehicle this;
------------------------------------------------------------------------------------------------------------
If there are any specific aspects of public zeus you would like to see a tutorial on then feel free to place a comment and I'll see what I can do!
#Arma3 #Arma3PublicZeus #Arma3ScriptingTutorials
Other Videos By Tiber Brutus
Other Statistics
ARMA 3 Statistics For Tiber Brutus
There are 85,755 views in 59 videos for ARMA 3. The game makes up 1 hour of published video on his channel, or 41.72% of the total watchable video for ARMA 3 on Tiber Brutus's YouTube channel.