Jump to content

Recommended Posts

We haven't been able to get the R3F logistics to work for several months; we think its been broken since at least the update last summer/fall.

Share this post


Link to post
Share on other sites

I've been working on this for a few days now and cant get to the bottom of it. Here ill post a little progress I think i've made. Maybe we can figure this out.

 

My scenario, I'm trying to change the prices, capacities, etc. of some CUP Vehicles. I created my own addon from the template provided in the addon_config folder. Also created a corresponding  .sqf named the same. Then In the config.sqf I #included my addon In the "list of addons config to include". 

 

I don't know if this is gonna help anyone. I would post a picture of a small directory image I created. But I don't know how.. 

 

 

 

Share this post


Link to post
Share on other sites

How can I detect if cargo is in vehicle? I want it so that when I place a box inside a trucks cargo, I get a hint.

"box_1 inCargo Truck_1" doesn't work with this.

Share this post


Link to post
Share on other sites

Anyone around that can provide a little help with this script? I have a pretty simple goal but nobody has been able to help. The documentation just throws me in circles around the creation factory. 

Share this post


Link to post
Share on other sites

The power of profileNamespace ! 😀

  • Like 2

Share this post


Link to post
Share on other sites

Hello, I would like to know if it is possible to choose the spawn position of the creation factory, for example on a heliport type marker, thank you

 

Bonjour, je souhaiterais savoir s'il est possible de choisir la position de spawn de l'usine de création, par exemple sur un marqueur type heliport, merci

Share this post


Link to post
Share on other sites

The vehicle is created around the factory (somewhere suitable). You will need to modify the the .sqf file to have it spawn specific on one helipad (if safe to do so).

Salut @focher - Le véhicule est créé autour de l'usine. Vous devrez modifier le fichier .sqf pour qu'il crée le véhicule à un point spécifique (zone ouverte).

La langue des forums n'est qu'en anglais, nous devrions donc l'utiliser.

 

Quick and simple solution:

NBFmIjV.png

(EDIT: copy changes from below, not the screenshot!)

1) Open creer_objet.sqf file.

2) See my changes above.

3) Apply to your version.

Original:

				// Recherche d'une position d�gag�e (on augmente progressivement le rayon jusqu'� trouver une position)
				for [{_rayon = 5 max (2*_bbox_dim); _pos_degagee = [];}, {count _pos_degagee == 0 && _rayon <= 30 + (8*_bbox_dim)}, {_rayon = _rayon + 10 + (2*_bbox_dim)}] do
				{
					_pos_degagee = [
						_bbox_dim,
						_usine modelToWorld [0, if (_usine isKindOf "AllVehicles") then {(boundingBoxReal _usine select 0 select 1) - 2 - 0.3*_rayon} else {0}, 0],
						_rayon,
						100 min (5 + _rayon^1.2)
					] call R3F_LOG_FNCT_3D_tirer_position_degagee_sol;
				};

Changed to:

				// Recherche d'une position d�gag�e (on augmente progressivement le rayon jusqu'� trouver une position)
				for [{_rayon = 5 max (2*_bbox_dim); _pos_degagee = [];}, {count _pos_degagee == 0 && _rayon <= 30 + (8*_bbox_dim)}, {_rayon = _rayon + 10 + (2*_bbox_dim)}] do
				{
					_pos_degagee = position factorySpawnPoint;
				};
				if (position factorySpawnPoint findEmptyPosition [0, 0, _classe] isEqualTo []) exitWith
				{
					_pos_degagee = [];
					systemChat format ["There is something too close to the factory spawn point. Unable to spawn %1.", getText (configFile >> "CfgVehicles" >> _classe >> "displayName")];
				};

Ignore line numbers as I have extra stuff in mine. Place down helipad and name it. Make sure they sync up in the Eden editor and file - I used factorySpawnPoint here. You can also follow R3F standards and add the text to the custom stringtable. The systemChat would then become:

systemChat format [STR_R3F_LOG_XX, getText (configFile >> "CfgVehicles" >> _classe >> "displayName")];

Add strings to both en_ and fr_ files.

Share this post


Link to post
Share on other sites

When it comes to lifting mechanics. What is the best way to go about specifying how Aircraft A can only lift Vehicle A, and the Aircraft B can only lift Vehicle A and B, and Aircraft C can lift Vehicle A, B, and C?

 

Thanks,

Panda

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×