Page MenuHomeFeedback Tracker

absolutely weird script behavior
New, WishlistPublic

Description

When playing some MP mission I made I came across a strange script behavior.

I created a vehicle through custom scripts and I couldn't drive it. Another player in the same mission was able to get in and drive it.
So I asked the other player to create the same vehicle himself and now the situation was reversed (he couldn't drive the vehicle but I could).

See the repro steps and let me know if it happens for you too.

Anyone has a fix for this?

Details

Legacy ID
128244930
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Use hosted mission on Altis with one soldier and debug console enabled.
Run the pieces of code below individually with the debug console by deleting the vehicle between tests (deletevehicle cursortarget).
After each vehicle creation get inside as driver and try move the vehicle. Sometimes it moves, sometimes not.

// VEHICLE MOVES

[
[],
{

		_object = createVehicle ["b_mrap_01_f", [4174,16956.8,-10], [], 0, "NONE"];
		_object setPosATL [4174,16956.8,0];

}
] remoteExec ["call", player, false];

// VEHICLE DOESNT MOVE - with both setposATL and setpos

FNC_EXE = {call _this};

{
_object = createVehicle ["b_mrap_01_f", [4174,16956.8,-10], [], 0, "NONE"];
_object setPosATL [4174,16956.8,0];
} remoteExec ["FNC_EXE", player, false];

// VEHICLE DOESNT MOVE with setposatl (but works with setpos)

FNC_EXE =
{
_object = createVehicle ["b_mrap_01_f", [4174,16956.8,-10], [], 0, "NONE"];
_object setPosATL [4174,16956.8,0];
};

remoteExec ["FNC_EXE", player, false];

// VEHICLE MOVES - only position has changed from [4174,16956.8,0] to [4184.63,16974.6,0]

FNC_EXE =
{
_object = createVehicle ["b_mrap_01_f", [4184.63,16974.6,-10], [], 0, "NONE"];
_object setPosATL [4184.63,16974.6,0];
};

remoteExec ["FNC_EXE", player, false];

Event Timeline

d3nn16 edited Steps To Reproduce. (Show Details)Dec 7 2015, 5:02 PM
d3nn16 set Category to Scripting.
d3nn16 set Reproducibility to Always.
d3nn16 set Severity to None.
d3nn16 set Resolution to Open.
d3nn16 set Legacy ID to 128244930.May 8 2016, 1:16 PM