Vondu

DMS Static Mission Crate interaction

5 posts in this topic

I have created a static mission but the crate is accessible even tho the mission has not been completed.  I've noticed that other dms missions will allow you to interact with the crate but will not show items until the mission is completed.

Am I missing something?  I've looked at the config and I don't see any settings that pertain to static mission crates being locked until mission is completed.  I've also compared my crate creation to some of the bandit missions crate creations in the mission sqf and they look the same.

Any help or clues would be appreciated. 

Share this post


Link to post
Share on other sites

maybe this?

a3_dms\scripts\fn_SpawnCrate.sqf

Spoiler

_crate allowDamage false;
_crate enableSimulationGlobal false;
_crate enableRopeAttach false;

clearWeaponCargoGlobal         _crate;
clearItemCargoGlobal         _crate;
clearMagazineCargoGlobal     _crate;
clearBackpackCargoGlobal     _crate;

_crate setVariable ["ExileMoney",0,true];

if (DMS_HideBox) then
{
    _crate hideObjectGlobal true;
};

_crate;

and in a3_dms\scripts\fn_MissionsMonitor_Static.sqf lines 139

Spoiler

if (_completionInfo call DMS_fnc_MissionSuccessState) then

169-171

Spoiler

            {
                _x call DMS_fnc_FillCrate;
            } forEach _crate_info_array;

 

 

Share this post


Link to post
Share on other sites
Advertisement

If all else fails, make the crate spawn after the mission is completed. Might not be what you wanted, but it still stops players from accessing the crate before the mission is completed.

Share this post


Link to post
Share on other sites

General Discussion is not for support. Please refrain from posting your support queries here, and instead post in the thread for the addon in question.

Share this post


Link to post
Share on other sites
Advertisement
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.