mcnools 62 Posted August 13, 2023 Hello, I'm working on a MP mission where I want an item in a crate that only one specific playable unit can access. Is there any way to do this by scripting? I tried to search but I could only find really old scripts that I couldn't get working. Share this post Link to post Share on other sites
JCataclisma 79 Posted August 13, 2023 Are you planning to do that for a specific class, let's say, only for pilots? Or maybe only for a specific SteamID whether in MP? . EDIT: But as you mentioned "one specific playable unit", your idea is to do that for a specific unit name, correct? Share this post Link to post Share on other sites
mcnools 62 Posted August 14, 2023 6 hours ago, JCataclisma said: Are you planning to do that for a specific class, let's say, only for pilots? Or maybe only for a specific SteamID whether in MP? . EDIT: But as you mentioned "one specific playable unit", your idea is to do that for a specific unit name, correct? Yes, the idea is to do it for a specific unit name, I've given all the units in our squad ID's (the one who should be able to open the crate is RadioOperator). Share this post Link to post Share on other sites
Harzach 2517 Posted August 14, 2023 Name your crate ("c1" for example) initPlayerLocal.sqf: params ["_player", "_didJIP"]; waitUntil {(!isNull (findDisplay 46))}; if (_player != RadioOperator) then { c1 lockinventory true; }; 2 2 Share this post Link to post Share on other sites
mcnools 62 Posted August 14, 2023 @Harzach It seems to work fine! Thank you very much man! 1 Share this post Link to post Share on other sites
Harzach 2517 Posted August 14, 2023 @mcnools Any time, boss! 1 Share this post Link to post Share on other sites