HelpVehicles disappear

Posts 1–9 of 9 · Page 1 of 1
Vehicles disappear
Hey, i have this Script

Code:
private["_spawn", "_dir", "_pos", "_xos", "_yos", "_zos", "_rid", "_svr"];

_spawn = "MtvrRefuel_DES_EP1";
_dir = getdir vehicle player;
_pos = getPos vehicle player;
_pos = [(_pos select 0)-5*sin(_dir),(_pos select 1)-5*cos(_dir),0]; // 50 meters behind
_xos = _pos select 0;
_yos = _pos select 1;
_zos = _pos select 2;
_rid = 999+random(9999);
_svr = format["
if (isServer) then {
_object = createVehicle ['%1', [%2, %3, %4], [], 0, 'CAN_COLLIDE']; 
_object setVariable ['ObjectID', %5, true];
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor, _object];
_uid = _object call dayz_objectUID;
_object setVariable ['ObjectUID', _uid, true];
_object setVariable ['OwnerID', 0, true];
}", _spawn, _xos, _yos, _zos, _rid];

sleep 0.1;
player setVehicleInit _svr;
sleep 0.1;
processInitCommands;
sleep 0.1;
clearVehicleInit player;
but always when i spawn a Car its there for a short time, the the car disappears. How can i fix that?
I play on my own Server without any anti hack tools.
It's either an anti-hack, or something is wrong with your script. It doesn't look like anything is wrong though :s
Hm, okey, takns for you answer
Have you maybe a Script that Work?
You need a new RE. The script looks fine to me (though I didn't look that much.)
Look for a newly released menu and just take the RE from that.
Because of anti-hack you can't spawn in cars anymore, they just spawn in and then disappear; look at the Rustlers menu as it has some successful vehicle spawn scripts.
When i spawn Car in the Area where nothing is (out of the map(there where nothing is exept water or hills) the didn´t disappear.. but when i Fly/Drive with the Car back to the Map then they disappear again....
Quote Originally Posted by Bobie1945 View Post
At Taviana.com i can Spawn Cars and use them. There they dont disappear.
It depends on the server, on some servers I can spawn vehicles and others I can't.
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us