HelpHeli spawn problem

Posts 1–4 of 4 · Page 1 of 1
Heli spawn problem
i use "private ["_dummy"]; _dummy = [_this,"onload"] execVM "\scr\spawn\GivePlayer\mi17_dz.sqf";" to spawn helis but they spawn way up in the air turned on and then they come down and blow up. Is my script bad or am i spawning it in the wrond spot or what? any help is much appreciated.
Quote Originally Posted by itz44 View Post
i use "private ["_dummy"]; _dummy = [_this,"onload"] execVM "\scr\spawn\GivePlayer\mi17_dz.sqf";" to spawn helis but they spawn way up in the air turned on and then they come down and blow up. Is my script bad or am i spawning it in the wrond spot or what? any help is much appreciated.
you need to post what is inside \scr\spawn\GivePlayer\mi17_dz.sqf
Quote Originally Posted by typh0 View Post
you need to post what is inside \scr\spawn\GivePlayer\mi17_dz.sqf
lol fail sorry its this
player1 = _this select 0;

_care = format ["if (isServer) then
{
[0, nil, [0, %1], '%2'] call local_publishObj;
};", [(getpos player select 0), (getpos player select 1), 100], 'Mi17_DZ'];
[_care] execVM "scr\exec.sqf";
sleep 1;


_spwnveh1 = format ['
if (name player == "%1") then
{

vehD = nearestObjects [%2, ["Mi17_DZ"], 150];
veh = vehD select 0;
veh setpos [(getpos player select 0) + 5, (getpos player select 1) - 5, 0];

titleText ["Mi17_DZ Spawned!", "PLAIN DOWN"]; titlefadeout 2;
};', player1, getpos vehicle player];
[_spwnveh1] execVM "scr\exec.sqf";
Code:
player1 = _this select 0;

_care = format ["if (isServer) then
{
[0, nil, [0, %1], '%2'] call local_publishObj;
};", [(getpos player select 0), (getpos player select 1), (getpos player select 2)], 'Mi17_DZ'];
[_care] execVM "scr\exec.sqf";
sleep 1;


_spwnveh1 = format ['
if (name player == "%1") then
{

vehD = nearestObjects [%2, ["Mi17_DZ"], 150];
veh = vehD select 0;
veh setpos [(getpos player select 0) + 5, (getpos player select 1) - 5, 0];

titleText ["Mi17_DZ Spawned!", "PLAIN DOWN"]; titlefadeout 2;
};', player1, getpos vehicle player];
[_spwnveh1] execVM "scr\exec.sqf";
try it now
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us