As GOM said I can call the function on the Server with following line over infistar (F3):
_bomb = ["",[0.5,0.5],270,20,100] spawn GOM_fnc_carpetbombing;
//first parameter gives the bomb type, empty string will make the script use a random bomb, mod bombs will also be used
//second parameter holds the position that should be bombed
//third parameter holds the direction
//fourth parameter defines the amount of bombs to be dropped
//fifth parameter defines the average distance for the bombs to spread
Hi Folks,
I'm trying to modify the _ambient Overfly script to use "GOM Carpet Bombing" script/function to attack an player randomly.
GOMs Carpet bombing on Armaholic
As GOM said I can call the function on the Server with following line over infistar (F3):
_bomb = ["",[0.5,0.5],270,20,100] spawn GOM_fnc_carpetbombing; //first parameter gives the bomb type, empty string will make the script use a random bomb, mod bombs will also be used //second parameter holds the position that should be bombed //third parameter holds the direction //fourth parameter defines the amount of bombs to be dropped //fifth parameter defines the average distance for the bombs to spread
the given one in theScript:
_bomb = ["",screenToWorld [0.5,0.5],270,20,100] spawn GOM_fnc_carpetbombing;
doesnt work for me.
Now I'm trying to call this in the
ExileServer_system_event_ambientFlyOver_start.sqf
at the following position with this altered line (_bomb is a private variable):
... //_waypoint setWaypointStatements ["true", "'Ambient Fly Over - Reached player...' call ExileServer_util_log;"]; _waypoint setWaypointStatements ["true", '_bomb = ["",[(_targetPosition select 0),(_targetPosition select 1)],270,48,250] spawn GOM_fnc_carpetbombing;']; ...
I tried a lot of kombinations of () {} [] '' "" ... but I'm not able to get a call that is functioning.
The script throws errors os doesnt start when called.
when it starts and calls the function I got an error:
19:31:22 Error in expression <alse;
_firstImpactPos = (_bomblocation getPos [(_distance / 2),_direction + 180>
19:31:22 Error position: <getPos [(_distance / 2),_direction + 180>
19:31:22 Error Type Any, expected Number
19:31:22 File mpmissions\__cur_mp.Altis\Custom\GOM\GOM_fnc_carpetBombing.sqf, line 51
19:31:22 Error in expression <on"];
_airraidsirens = nearestobjects [_bomblocation,["Land_BellTower_01_V1_F",>
19:31:22 Error position: <_bomblocation,["Land_BellTower_01_V1_F",>
19:31:22 Error Undefined variable in expression: _bomblocation
19:31:22 File mpmissions\__cur_mp.Altis\Custom\GOM\GOM_fnc_carpetBombing.sqf, line 24
19:31:34 Error in expression <yers = allPlayers select {_x distance2D _firstImpactPos < 1500};
[_randomsound] >
19:31:34 Error position: <_firstImpactPos < 1500};
[_randomsound] >
19:31:34 Error Undefined variable in expression: _firstimpactpos
19:31:34 File mpmissions\__cur_mp.Altis\Custom\GOM\GOM_fnc_carpetBombing.sqf, line 58
19:31:34 Trying to call RemoteExec(Call) with 0 targets for func 'playsound'. Maximum is 1000
19:31:54 Error in expression <",_closePlayers];
sleep 20;
_relpos = _firstImpactPos;
_bomb = objNull;
for "_>
19:31:54 Error position: <_firstImpactPos;
_bomb = objNull;
for "_>
19:31:54 Error Undefined variable in expression: _firstimpactpos
19:31:54 File mpmissions\__cur_mp.Altis\Custom\GOM\GOM_fnc_carpetBombing.sqf, line 63
19:31:54 Error in expression < to _amount do {
sleep 0.1;
_tempPos = _relpos vectorAdd [random [-20,0,20],ran>
19:31:54 Error position: <_relpos vectorAdd [random [-20,0,20],ran>
19:31:54 Error Undefined variable in expression: _relpos
19:31:54 File mpmissions\__cur_mp.Altis\Custom\GOM\GOM_fnc_carpetBombing.sqf, line 68
19:31:54 Error in expression <
params ["_bomb"];
waituntil {getposATL _bomb select 2 <= 700};
_soundarray = [">
19:31:54 Error position: <_bomb select 2 <= 700};
_soundarray = [">
19:31:54 Error Undefined variable in expression: _bomb
19:31:54 File mpmissions\__cur_mp.Altis\Custom\GOM\GOM_fnc_carpetBombing.sqf, line 88
19:31:54 Error in expression <
params ["_bomb"];
waituntil {getposATL _bomb select 2 <= 700};
_soundarray = [">
19:31:54 Error position: <_bomb select 2 <= 700};
_soundarray = [">
19:31:54 Error Undefined variable in expression: _bomb
19:31:54 File mpmissions\__cur_mp.Altis\Custom\GOM\GOM_fnc_carpetBombing.sqf, line 88
19:31:54 Error in expression <
params ["_bomb"];
waituntil {getposATL _bomb select 2 <= 700};
_soundarray = [">
19:31:54 Error position: <_bomb select 2 <= 700};
_soundarray = [">
19:31:54 Error Undefined variable in expression: _bomb
19:31:54 File mpmissions\__cur_mp.Altis\Custom\GOM\GOM_fnc_carpetBombing.sqf, line 88
19:31:54 Error in expression <
params ["_bomb"];
waituntil {getposATL _bomb select 2 <= 700};
_soundarray = [">
19:31:54 Error position: <_bomb select 2 <= 700};
_soundarray = [">
from here the error in line 88 is repeating constantly...
It would be nice, if anyone can help me get this thing running.
TheFarFlash
PS: spent two days for this little line, trying to get it running :-(
Edited by TheFarFlashShare this post
Link to post
Share on other sites