Pickupable Dropped Satchel Charge 
13 comments There are times when you place satchel charges in a wrong place and you have no idea how to take them back. You don't have to worry about this. This script allows you to pick all of your satchels without having to rush at finding for these items. Here's what you can do and what you can't:
Pick dropped satchel charges from the ground with the Use [E] key;
Once you have maximum five satchel charges you cannot pick them any more (3rd screenshot);
If you do not have at least one satchel charge (+ a remote control as you must have it in order to detonate them at any time) you're not able to pick them (4th screenshot).
Installation
Extract the GetDroppedCharges.lua file to
As soon as you save the file, the changes will take effect.
As of 03 of July, 2017, you are now able to customise and disable the message outputs of this script. Check the More tag for further information on how to use this system.
Credits
Apache uwu -
Weapon Ammo Counts (14) (Took some examples from his script code)
Dousea - Helped me at fixing annoying bugs
Changelog
03.07.17 - Message configuration added (see the details above)
18.06.17 - Initial release
Rules & Permissions
You can do anything as you wish with this file. You can also upload it to other reliable sources as long as you have my permission to do so.




Extract the GetDroppedCharges.lua file to
sys/lua
path. Afterwards open server.lua with a text editor and add the following line:Code:
1
dofile("sys/lua/GetDroppedCharges.lua")
As soon as you save the file, the changes will take effect.

Credits




Changelog



You can do anything as you wish with this file. You can also upload it to other reliable sources as long as you have my permission to do so.
edited 8×, last 03.07.17 02:47:16 pm

Comments
13 comments



Log in!
You need to log in to be able to write comments!Log in
@
Dousea: Sure. Will do that later when I have time for it.


This message would spam everytime you click E. Sombe nbs can't use "--" or remove the line completely.
Why need to? when it lay near trigger_use and you have x5 satchels you press anytime and get tons of messages, if there is +100500 of them. Use "break" to prevent loop from all of them.
I dont like log thing, but since this is the only way to do and nobody did similar - leave it here.
Why need to? when it lay near trigger_use and you have x5 satchels you press anytime and get tons of messages, if there is +100500 of them. Use "break" to prevent loop from all of them.
I dont like log thing, but since this is the only way to do and nobody did similar - leave it here.



