Hi Folks, I have been working on this BKT Cargo script to give some extra features to planes on my NAPF server. Here is the link to it: http://www.armaholic.com/page.php?id=10834
So far It works, I can load stuff in and out of vehicles but the issue is that it will let you load and unload items from locked vehicles. I see in the script that it checks for R3F's lift/tow and I am wondering how to check for other lift or towing scripts as I use =BTC='s lift and F507DMT's edit of matt_d_rats towing. Found Here, and
I am by no means a scripter, but I do know that it looks like Engine.sqf is the file responsible for executing the actions, and it seems that it is broken down into separate sections based on its size aka Load in Small, Load in Medium, Load in Large, Load in Extra Large. I would assume in each of these sections, a extra check would be needed to see if the vehicle is locked. If it is a titletxt message or something would be needed to let the player know they cannot load/unload becuase the vehicle is locked.
Secondly, it looks like it also needs the add/remove variables from the various lifting and towing scripts so people cannot load towed vehicles for instance. Where would I add the _vehicle setVariable ["BTC_Cannot_Lift",true,true]; / _vehicle setVariable ["MF_Tow_Cannot_Tow",true,true]; or something to that effect? I see the _Object setVariable ["R3F_LOG_disabled", true]; in the file but comparing that line vs the line from lock_unlock.sqf there is a extra syntax on the end, that "true" and I don't know what it does or how it affects the function.
Below is the script in question. Any help would be greatly appreciative.
Question
Sinatrad
Hi Folks, I have been working on this BKT Cargo script to give some extra features to planes on my NAPF server. Here is the link to it: http://www.armaholic.com/page.php?id=10834
So far It works, I can load stuff in and out of vehicles but the issue is that it will let you load and unload items from locked vehicles. I see in the script that it checks for R3F's lift/tow and I am wondering how to check for other lift or towing scripts as I use =BTC='s lift and F507DMT's edit of matt_d_rats towing. Found Here, and
I am by no means a scripter, but I do know that it looks like Engine.sqf is the file responsible for executing the actions, and it seems that it is broken down into separate sections based on its size aka Load in Small, Load in Medium, Load in Large, Load in Extra Large. I would assume in each of these sections, a extra check would be needed to see if the vehicle is locked. If it is a titletxt message or something would be needed to let the player know they cannot load/unload becuase the vehicle is locked.
Secondly, it looks like it also needs the add/remove variables from the various lifting and towing scripts so people cannot load towed vehicles for instance. Where would I add the _vehicle setVariable ["BTC_Cannot_Lift",true,true]; / _vehicle setVariable ["MF_Tow_Cannot_Tow",true,true]; or something to that effect? I see the _Object setVariable ["R3F_LOG_disabled", true]; in the file but comparing that line vs the line from lock_unlock.sqf there is a extra syntax on the end, that "true" and I don't know what it does or how it affects the function.
Below is the script in question. Any help would be greatly appreciative.
Thanks,
Sinatrad
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now