Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed invalid variable usage added cargonet logic check #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Sycholic
Copy link

Fixed the 2 invalid calls to _vehicle local variable that doesnt exist anymore in the script.
Created a logic check to see if the vehicle even has a cargo net in the first place then check logic for the cargo net being visible.

Short circuit logic (Lazy Evaluation as arma calls it) is used here 2nd part of logic is not even evaluated if the cargo net does not exist for the target.

@Sycholic
Copy link
Author

btw I wrote that with the camonet checking to make sure it exists first. server side log is getting spammed with tons upon tons of bad animation/texture missing/dont exist errors. so figured for sanity sake since that script is rarely called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant