Jump to content
Sign in to follow this  
arthur2shedsjackson

modifying config in veh spawn script

Recommended Posts

so this mod UGV is broken and wont drive, I'm trying to change the turn coef, at the same time as spawning one...

 

myUgV = [getPos player, 0, "OPTRE_RCHog_VBIED", resistance] call BIS_fnc_spawnVehicle; 
createVehicleCrew (myUgV select 0); ["myugv setturnCoef = 5.0", "myugv setterrainCoef = 0.5", "myugv canfloat = 1",   
"myugv setwaterspeedcoef = 0.6", "myugv setwaterResistanceCoef = 0.030000"];

 

the veh spawns, but the changes arent happening, I can tell because it sinks!

 

also, a "cursorobject teleport 1 meter up" script would be very helpful as the damn thing gets stuck to the terrain unless it is driving when it lands! (been trying to get that to work for hours)

 

This thing is giving me hell so any help massively appreciated, cheers.

Share this post


Link to post
Share on other sites
49 minutes ago, arthur2shedsjackson said:

the changes arent happening

 

You can't edit a config via scripting. Putting "set" in front of a config parameter doesn't do anything:

[
	"myugv setturnCoef = 5.0", 
	"myugv setterrainCoef = 0.5", 
	"myugv canfloat = 1",   
	"myugv setwaterspeedcoef = 0.6", 
	"myugv setwaterResistanceCoef = 0.030000"
];

// none of these commands exist

You need to edit the config and save it as a new "replacement" mod.

 

https://community.bistudio.com/wiki/Arma_3:_Replacement_Config_Tutorial

  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites
1 hour ago, arthur2shedsjackson said:

a "cursorobject teleport 1 meter up" script would be very helpful

 

cursorObject setpos (position cursorObject vectorAdd [0,0,1]);

 

  • Thanks 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
Sign in to follow this  

×