Jump to content

LifeSnatcher

Member
  • Content Count

    32
  • Joined

  • Last visited

  • Medals

Community Reputation

2 Neutral

About LifeSnatcher

  • Rank
    Private First Class

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. NVM I finally figure it out yay. thanks guys.
  2. yep your right. works fine when i RE if from initserver.sqf. how can i call functions from the client?
  3. https://drive.google.com/file/d/13nZTrD6buS8vqI90MHwQxkXT0DYwCWdB/view
  4. https://drive.google.com/file/d/13nZTrD6buS8vqI90MHwQxkXT0DYwCWdB/view
  5. i am a noob, i know that. im trying to create a server side addon that i can put my scripts/functions in. i have a test setup that is just supposed to do hello world. can someone please tell me what im doing wrong. thank you for any help. image of my current setup. https://imgur.com/a/cfRcA3i
  6. Has anyone incorporated a deserted/abandon feature to this? if so can you share.
  7. LifeSnatcher

    [Release] - CleanUp script

    yup, thank you so much, awesome work mate. really great script, hell of a job.
  8. LifeSnatcher

    [Release] - CleanUp script

    Still not working. downloaded the new version and still using the same code i sent in the init file. any thoughts?
  9. LifeSnatcher

    [Release] - CleanUp script

    Hi, Im using this script for the first time today and it sounds awesome and perfect however, Its not working for me. Im trying to use it in my base only and i put my items on the ground and walked away. i waited and nothing happened. im using a marker that is 200 x 300. here is the code in my init file. i get no errors and no message about not being server, so i assume its running. i put a first aid kit down and a couple of mags. i want it to be 1 meter that a player is away so that it cleans up the items at the arsenal, should a player drop stuff on the ground. if (isServer) then { fnc_cleanup = compileFinal preprocessFileLineNumbers "scripts\cleanup.sqf"; null = [ "mb_marker_13", ((getMarkerSize "mb_marker_13") call BIS_fnc_greatestNum), 1, 0.8, true, 60 ] spawn fnc_cleanup; };
  10. is this really solved?? if so, does it work for all Enemy Infantry? If it does why am i getting this error message "Error missing ]" when using this code. params ["_missionabrev", "_taskid"]; _v_taskname = _missionabrev + "EndTask"; _v_markername = _missionabrev + "Marker_1"; //create task SMEndTask = [west,[_v_taskname],["SideMission Update: Kill remaining Hostiles!", "SideMission Update: Kill remaining Hostiles!", "SideMission Update: Kill remaining Hostiles!"],getMarkerPos _v_markername,true,5,true,"attack",True] call BIS_fnc_taskCreate; your_global_init_count = count (allUnits select {side _x == east && _x inArea your_trigger_name}); count ( thisList select { side _x == east } )<= 0.1 * your_global_init_count; SMTrg_alldead = createTrigger ["EmptyDetector", getMarkerPos _v_markername]; SMTrg_alldead setTriggerArea [500, 500, 0, false]; SMTrg_alldead setTriggerStatements ["0.1 * ( count ( allDeadMen select { _x inArea thisTrigger && ( [getNumber (configfile >> "CfgVehicles" >> typeOf _x >> "side")] call BIS_fnc_sideType == east ) } ) + count ( thisList select { side _x == east })) >= count ( thisList select { side _x == east });" , "SMEndTask = ['" + _v_taskname + "', 'SUCCEEDED',true] spawn BIS_fnc_taskSetState; ['" + _missionabrev + "', '" + _taskid + "'] call TLS_fnc_spawnEndSMFunc; ", ""]; SMTrg_alldead setTriggerTimeout [1, 1, 1, false]
  11. here is my function in its entirity. in its current state its not working. please help params ["_missionabrev", "_taskid"]; _v_taskname = _missionabrev + "EndTask"; _v_markername = _missionabrev + "Marker_1"; //create task SMEndTask = [west,[_v_taskname],["SideMission Update: Kill remaining Hostiles!", "SideMission Update: Kill remaining Hostiles!", "SideMission Update: Kill remaining Hostiles!"],getMarkerPos _v_markername,true,5,true,"attack",True] call BIS_fnc_taskCreate; private _centre = getMarkerPos _v_markername; private _radius = 500; SMareaUnits = allunits select {( (side _x == EAST) && ((getpos _x) distance _centre < _radius) )}; SMTrg_alldead = createTrigger ["EmptyDetector", getMarkerPos _v_markername]; SMTrg_alldead setTriggerArea [500, 500, 0, false]; SMTrg_alldead setTriggerActivation ["NONE", "NOT PRESENT", true]; SMTrg_alldead setTriggerStatements ["({not alive _x && side _x == east} count SMareaUnits) <= ((({alive _x && side _x == east} count SMareaUnits))*0.5);" , "SMEndTask = ['" + _v_taskname + "', 'SUCCEEDED',true] spawn BIS_fnc_taskSetState; ['" + _missionabrev + "', '" + _taskid + "'] call TLS_fnc_spawnEndSMFunc; ", ""]; SMTrg_alldead setTriggerTimeout [1, 1, 1, false] when a task is complete on a mission it calls this function to add kill the rest task. but i only want players to have to kill %80 of the bad guys cuz some get stuck or hide really well.
  12. this is a script im calling as a function. as you can see the parameters at the top. first id like the merge the two segments of code to create a working segement then im happy to put it where ever is best, on a trigger or logic module, or keep it in my script file as a function.
  13. ok so i suck at arma scripting. Im having trouble combining these two scripts. if someone with scripting knowledge could help me i would greatly appreciate it. private _centre = getMarkerPos "my_marker"; private _radius = 500; private _areaUnits = allunits select {( (side _x == EAST) && ((getpos _x) distance _centre < _radius) )}; waitUntil { sleep 1; { alive _x } count _areaUnits == 0 } other script ({not alive _x && side _x == east} count thisList) <= ((({alive _x && side _x == east} count thisList))*0.5);
  14. I really appreciate all the feed back sorry for being a dick before. i did however solve my issues with the following two script usages. not sure how to mark the thread as solved https://community.bistudio.com/wiki/BIS_fnc_taskCreate https://community.bistudio.com/wiki/BIS_fnc_taskSetState for the next poor sap who is baffled by all the possible task creation methods arma has made.
  15. As i said, i need to dynamically create tasks because im running a server that allows users to submit compositions/missions and i spawn them in with a parser. so if you dont know scripting then why post here. unless your looking to increase your forum score.
×