read a few back posts of late , youl figure out who i meen.
btw look in local_publishObj looks like everything you need is in there.
I checked out local_publishObj, tried spawning a vehicle using it like this:
_location = getPos player;
_dir = getDir player;
_worldspace = [_dir,_location];
null = [10, "M1030", _worldspace, "M1030"] execVM "\z\addons\dayz_code\compile\local_publishObj.sqf";
vehicle player setDamage 0;
vehicle player setFuel 1;
Still the same problem, getting in causes me to explode&die. I noticed when looking at the code as well that its very similar to something i had tried earlier (just calling createVehicle directly + setting ObjectID with the following code):
_location = (position player);
_className = "UH1H_DZ";
_vehi = createVehicle [_className, _location, [], 0, "CAN_COLLIDE"];
_vehi setVariable ["ObjectID", 654654, true]
the only main difference between that code and local_publishObj's code appears to be that it writes to HIVE, but either way, neither appear to be working. This is driving me insane, vehicles spawned fine with the code above before 1.7 patch on DayZ, and I haven't been able to figure out what changed in their code that caused this method to break.
Is there something wrong with my code (still getting used to arma 2 scripting), or am I just missing something?