Jump to content
Fourty7

Looking for help acquiring turret paths

Recommended Posts

Hey, sorry to bug you guys about something simple.

 

Just wondering if anybody is aware of a quick & easy way to find turret paths for vehicles. I've always done this manually (Trying every possibility until it works) but working with mods that don't follow standards very well it gets a little crazy.

I looked through a lot of SQF commands & functions, I tried using all of the following;

// Functions
BIS_fnc_getTurrets
BIS_fnc_allTurrets
BIS_fnc_vehicleCrewTurrets

// SQF CMDs
allTurrets
fullCrew

 

Every one of the above gave the exact same return, even though some of them say they only return the turret paths, it included the things the others had.

Eg; SCREENSHOT OF RETURN VALUES TEXTIFIED

 

I was running these using systemChat through an action, SQF below;

 

this addAction [ 
 "<t color='#ff5522'>Turret Test</t>", 
 { 
  params ["_target", "_caller", "_actionId", "_arguments"];
  
  {
      systemChat (_this joinString "||");
  } forEach ((typeOf _target) call BIS_fnc_getTurrets);
  
 }, 
 nil, 
 5, 
 true, 
 true, 
 "", 
 "true", 
 100, 
 false, 
 "", 
 "" 
];

 

 

No matter what I tried every single time it was returning "any" for the turretPath.

I'm not amazing at SQF, but I made sure I ran every one of the functions & commands correctly and can't understand why this is (Or why they all show the same stuff).

I tested in vehicles I know the turret paths for, and it still said "any" with a human, AI, or nobody in the seats.

 

Am I missing something, messing something up, or is there another way to find turret paths that works?

 

Thank you very much for your time, and again sorry for bothering you!

Have a good one. 😉

Share this post


Link to post
Share on other sites

@pierremgi I cannot thank you enough man :O... You sir are a life saver! 😉

Vid of it working (I assume you already knew it would lol) 


Absolutely random on their turret pathing, RHS really knows how to follow standards ( https://community.bistudio.com/wiki/Turret_Path ) lol 😕.

Was looking around on your Workshop page, I'll try to get some people around to try out a few of your missions some time!.. Was just reading the "Surfing Jaws" description, sounds interesting 😜 Haven't tried yet but the concept on hostages / captured units does sound fun!

Not sure why but unitTurret is not linked as a "See Also (Related Commands)" under any of the ones I tried earlier (just checked to make sure). Not sure how to suggest this, but would if I could.

Also semi confusing that unitTurret requires the vehicle to be linked when a unit will have to be in a vehicle to get any turret path lol.

Not complaining either way, I have something that works and I will share with everybody I know who needs it! 😛

  • Like 1

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

×