Jump to content

New script for blacklisting/banning weapons on MP Missions?


deadlyfishes

Recommended Posts

Is there a new way to blacklist/completely remove a certain weapon from being loaded or used on an MP mission?

 

I know you can manually edit the airfields weapon capacity, but that's not really ideal.

 

I found this script, but it doesn't work, brings up an error on start:

https://pastebin.com/xk0ZTGP9

 

Any help or insight on this would be much appreciated as our server is starting to get popular. I don't want to remove the MiG-21 altogether, but we might have to lock it out to admins only for now.

 

Thanks!

"Through The Inferno"

Endless, Dynamic, Open-World Experience for DCS World
Link to comment
Share on other sites

Warehouse system is the best way, simply provide a huge number for weapons you want and set weapons you don't want to 0. However the warehouse system has limitations.

 

The script you posted, if it doesn't error, was one way of doing it, but I seem to recall some the Object.destroy() wasn't functioning correctly on certain weapons.

 

 

Aside for that, there is no way to do it to my knowledge. Suppose you could also use Unit.getAmmo() on players aircraft to search for weapons before the user even fires it.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...