Jump to content
logan83

how can Add electric wires to a High voltage Tower?

Recommended Posts

Just this, somebody know how can add electric wires from one electric tower to another??? im using "Land_HighVoltageTower_F" thanks guys :)

Share this post


Link to post
Share on other sites

Just this, somebody know how can add electric wires from one electric tower to another??? im using "Land_HighVoltageTower_F" thanks guys :)

You could try using drawLine3D. I know people have used it to draw tripwires before.

Or maybe even ropeCreate.

  • Like 1

Share this post


Link to post
Share on other sites

ok ill try with these commands thank u hallyg ;)

Here's something I came up with quickly- put this in your debug console:

 

if (isNil {tower1} && isNil {tower2}) then {
	private _pos = position player;

	tower1 = createVehicle ["Land_HighVoltageTower_F", _pos getPos [10, 45], [], 0, "NONE"];
	tower2 = createVehicle ["Land_HighVoltageTower_F", _pos getPos [30, 45], [], 0, "NONE"];

	tower1 setDir (45+90);
	tower2 setDir (45+90);
};

addMissionEventHandler ["Draw3D", {
	{
		drawLine3D [
			tower1 modelToWorld (_x select 0),
			tower2 modelToWorld (_x select 1),
			[0, 0, 0, 1]
		];
	} forEach [
		[[-20.0244,2.04932,6.86666], [20.0244,2.04932,6.86666]],
		[[-20.0244,-2.04932,6.86666], [20.0244,-2.04932,6.86666]]
	];
}];

The arrays are positions relative to the tower -format [WIRE START, WIRE END]. Add more arrays to add more wires.

  • Like 1

Share this post


Link to post
Share on other sites

There are plenty of wire objects in the game, why draw them?

 

  • Land_PowerWireBig_direct_F
  • Land_PowerWireBig_direct_short_F
  • Land_PowerWireBig_end_F
  • Land_PowerWireBig_left_F
  • Land_PowerWireBig_right_F
  • Land_PowerWireSmall_damaged_F
  • Land_PowerWireSmall_direct_F
  • Land_PowerWireSmall_Left_F
  • Land_PowerWireSmall_Right_F
  • Land_HighVoltageColumnWire_F

    https://community.bistudio.com/wiki/createVehicle/vehicles
  • Like 3

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

×