Vehicle hive spawn

fouc

Well-Known Member
Hi,

I'm making a home made version of an admin tool to just fit with my needs.

So I'm trying (unsuccessfully for now) to spawn vehicles in hive with my IG tool.
I tried to adapt a script made for epoch but I'm not sure if I miss something or not...

Here is my model :
http://dayzepoch.com/forum/index.ph...n-spawning-vehicles-to-hive-with-key-in-belt/
And
http://dayzepoch.com/forum/index.php?/topic/3945-locked-vehicles/#entry24830

But this is for epoch and I don't need keys ;)

I added the correct row to my menu but when I click to spawn a vehicle, I have the good message but nothing is spawn and nothing is added to the DB. Here is my addvehicle script :
Code:
private ["_worldspace","_class","_dir","_pos"];
_class = _this select 0;
_dir = getdir vehicle player;
_pos = getPos vehicle player;
_pos = [(_pos select 0)+8*sin(_dir),(_pos select 1)+8*cos(_dir),0];
_worldspace = [_dir,_pos];
 
PVAH_AdminRequest = [-1, player, _class, _pos];
publicVariableServer "PVAH_AdminRequest";
cutText [format["HIVESPAWN: %1 @ %2",_class,_worldspace], "PLAIN DOWN"];

Could someone please help me to make it work ?

Many thanks !
fouc
 
Back
Top