Jump to content

Recommended Posts

same for me. a player distance check is pretty essential :)
anyway thanks for that good work !

Share this post


Link to post
Share on other sites

I think davidoss gave u the tools. just use em:

this setVariable ["dnt_remove_me",true,false];

 

Share this post


Link to post
Share on other sites

sry...please help me understand...
that cant be directly used to players distance...right?
and sadly i'm not good enought to put hands on Davidoss script :(

Share this post


Link to post
Share on other sites

Update:

 

03.01.2018

Version  1.3

Changed usage to more user friendly way see first post

Added player in area check

 

  • Like 2

Share this post


Link to post
Share on other sites

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;
    };

Share this post


Link to post
Share on other sites

Sorry, my bad :-((

Unfortunately i make a mistake and released  function ready version.

You need to remove 1 line and 114 line making it to a simple script

 

1.             fnc_CleanUp = {

114.       };

 

or copy paste it from the 1 post

or change the init like this:

if (isServer) then {
    
        [] call compile preprocessFileLineNumbers "scripts\cleanup.sqf";
        
        null = [
            "mb_marker_13",
            ((getMarkerSize "mb_marker_13") call BIS_fnc_greatestNum),
            1,
            0.8,
            true,
            60
        ] spawn fnc_CleanUp;
    }; 

 

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites

It's been a while since I've dabbled in Arma scripting, but it seems like there's a way for this script to work via a trigger set to a radio call.

I'm not really familiar with how creating functions work, I just know of the ones you can access via the editor. Is there a pretty simple way to set this up so that it doesn't run on a timer but to work the way described above?

Share this post


Link to post
Share on other sites
11 minutes ago, rainbow47 said:

Does anyone have a working download link for this script?

Code in cleanup.sqf spoiler wrap and using one of the init.sqf examples from OP should still work, no?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×