Jump to content

steam-76561198069261992

Member
  • Content Count

    26
  • Joined

  • Last visited

  • Medals

Everything posted by steam-76561198069261992

  1. steam-76561198069261992

    can be removed

    dont worry, I fixed it my way. (pretty much the same still) and it works without errors. I guess I have no idea how it works.
  2. steam-76561198069261992

    Addaction cooldown?

    Hey, I am trying to make a small crafting system using addaction and dialogs. Though you can now just spam the addaction and just craft 1000 items at once. How would I go about adding a cooldown to my addaction? this addAction ["<t color=""#6FFFC2"">" +"Craft",{createDialog "CraftingUI";}];
  3. steam-76561198069261992

    Addaction cooldown?

    Thanks alot!
  4. steam-76561198069261992

    Help, checking for item in inventory?

    It works, thankyou. Also, is there a way to make it so it not only checks items of the player, but also magazines? Example would be: _items = items player, magazines player; But this doesnt work ofcourse. Edit: nevermind, found the solution. Thanks alot!
  5. steam-76561198069261992

    Help, checking for item in inventory?

    Hi, thanks for the quick response, though this is not what I am looking for. I am trying to make a crafting system and I want to make it so it uses multiple items. Lets say it uses "Scrap" twice, and uses a "Rifle_Body" once. So that would be 3 items that are all needed to execute the script.
  6. steam-76561198069261992

    Help, checking for item in inventory?

    Hi, I know this topic is really old, but how do I use this to check for multiple items of 1 specific item, and how do I check for multiple different items?
  7. steam-76561198069261992

    COP Key-Card

    Hi, I want to make a small key-card script but I need some help. I want to make it so that when you have a certain item in your inventory you automaticly get access to PD/DOC doors. ( player setVariable ["copLevel",1,true]; ) This is what I have tried: _items = items player; if ("Toolkit" in _items) then { player setVariable ["copLevel",1,true]; } else { player setVariable ["copLevel",0,true]; }; Though I can't get it to work this way, and I also dont know where I would put this script to make it work. Any help is appreciated.
  8. steam-76561198069261992

    COP Key-Card

    Whoops, that makes sense. Sorry haha. Thanks alot though.
  9. steam-76561198069261992

    COP Key-Card

    Right, I was over excited. It works when the classname in question is ToolKit. But when I change it to "vop_keycard_west" it doesnt work anymore, and yes it is the correct classname. Any ideas @pierremgi ?
  10. steam-76561198069261992

    COP Key-Card

    Thanks alot, this works perfectly as how I wanted it to work.
  11. steam-76561198069261992

    COP Key-Card

    I already use the same script for a bank robbery system, "items player" automaticly searches through the vest, uniform and backpack already.
  12. steam-76561198069261992

    Test for Item in Inventory

    Where would one put this script to make it work? 😄
  13. steam-76561198069261992

    Sort Weapons/Item/Backpacks/Magazines HELP

    @Larrow @.Marti where would I put your script to make it work? I am kinda a rookie 😄
  14. steam-76561198069261992

    Saving crate contents.

    Hello, I have yet another question. Yes, I suck at scripting.. Hence why I am asking this haha. So I got a "RP" server for friends only, and I would like to know how I could save crate contents, and make them load on server start again. So lets say someone has 2 pistols, and owns a house. He can put one pistol into his house crate, and when the server restarts his pistol is still there. I tried looking at: https://community.bistudio.com/wiki/profileNamespace and https://community.bistudio.com/wiki/saveProfileNamespace, but with no succes. Any ideas?
  15. steam-76561198069261992

    Saving crate contents.

    @.Marti well, as I mentioned above. I am not that familiar with Arma 3 scripting and with the post you send me I am not getting the info that I need 😄
  16. steam-76561198069261992

    Saving crate contents.

    Bump
  17. steam-76561198069261992

    How do I add a cooldown to a script

    Alright, I managed to just disable everything for "Voted admins", the trashcans work now. Thanks
  18. Hi, so I am currently working on a small basic RP server for a dozen friends.. And I am currently trying to create a "garbage man" job. So I have placed dumpsters around and once interacting with them a script gets called that basically adds certain items to a crate (The dumpster) But ofcourse it would be weird if you can just spam the script and gets loads of garbage and that way load your whole truck up with only 1 dumpster, so I want to add a cooldown to it. The script I used is as simple as: " testbox addmagazinecargoglobal ["vop_dilithium", 150]; " And as I am totally not a pro scripter, I was wondering how I would go and add a cooldown to this. I have tried sleep, uiSleep and waitUntil. But probably used them incorrectly.. Any tips? 😄
  19. steam-76561198069261992

    How do I add a cooldown to a script

    @stanhope thanks, and I know this thread isn't focussed on this. But how do I disable "admin voting" I have looked at "mission voting" "server.cfg" and also multiple threads, but it doesn't seem to work.. And my server is hosted on GPORTAL and in the server.cfg I cannot change anything, it just changes it back.
  20. steam-76561198069261992

    How do I add a cooldown to a script

    @pierremgi I dont really understand what you mean? I dont want the cooldown to be on all crates, but it currently is. How would I set the cooldown for player like you said?
  21. steam-76561198069261992

    How do I add a cooldown to a script

    @pierremgi Actually there is an issue, I just started the server for the first time and we already found an issue. When you activate 1 trashcan, the other trashcans are on cooldown too. Meaning that the cooldown is completely useless as I wanted it so that people wouldn't camp one can but go to others in other locations.
  22. steam-76561198069261992

    How do I add a cooldown to a script

    @pierremgi Thanks, it works very well like I want it to work. Awesome!
  23. steam-76561198069261992

    How do I add a cooldown to a script

    @stanhope so I should put "nextRunTime 0" in initplayerlocal? also ur AddAction doesn't work, for some reason the whole action just doesn't show up at all, I have send u a PM with a question.
×