Jump to content
  • 0

Help installing Vector Build


SoCalSlaughter

Question

 Hey guys, trying to install VectorBuilding on my server. I've gone over the install a few times. Everything seems legit, only thing I cant find is the variables.sqf. To add the last bit of code.

 

This is what I'm using https://github.com/strikerforce/DayzBuildVectors. I am hosting my server from Vilayer.com. I have all the other code in place and the server still runs fine, and SnapBuilding still works, but still no option to tilt parts. One other thing I want to make sure I have right is..

 

Last but not least, we need to save the objects direction to a variable. To do that, find:

if (DZE_GodModeBase) then {

And place the following above it:

_object setVariable["memDir",_dir,true];

This is how mine looks..

 

    if ((typeOf _object) in dayz_allowedObjects) then {
                _object setVariable["memDir",_dir,true];
                                if (DZE_GodModeBase) then {
                    _object addEventHandler ["HandleDamage", {false}];
                } else {
                    _object addMPEventHandler ["MPKilled",{_this call object_handleServerKilled;}];
                };
                // Test disabling simulation server side on buildables only.
                _object enableSimulation false;
                // used for inplace upgrades && lock/unlock of safe
                _object setVariable ["OEMPos", _pos, true];
                
            };

 

Is this correct? Thanks!!!!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

 Hey guys, trying to install VectorBuilding on my server. I've gone over the install a few times. Everything seems legit, only thing I cant find is the variables.sqf. To add the last bit of code.

 

This is what I'm using https://github.com/strikerforce/DayzBuildVectors. I am hosting my server from Vilayer.com. I have all the other code in place and the server still runs fine, and SnapBuilding still works, but still no option to tilt parts. One other thing I want to make sure I have right is..

 

Last but not least, we need to save the objects direction to a variable. To do that, find:

if (DZE_GodModeBase) then {

And place the following above it:

_object setVariable["memDir",_dir,true];

This is how mine looks..

 

    if ((typeOf _object) in dayz_allowedObjects) then {

                _object setVariable["memDir",_dir,true];

                                if (DZE_GodModeBase) then {

                    _object addEventHandler ["HandleDamage", {false}];

                } else {

                    _object addMPEventHandler ["MPKilled",{_this call object_handleServerKilled;}];

                };

                // Test disabling simulation server side on buildables only.

                _object enableSimulation false;

                // used for inplace upgrades && lock/unlock of safe

                _object setVariable ["OEMPos", _pos, true];

                

            };

 

Is this correct? Thanks!!!!

 

 

 

Looks good to me 

 

Link to comment
Share on other sites

  • 0

variables.sqf is located in dayz_code.pbo

 

If you don't mind the extra file size, just copy over the entire variables.sqf into your mission pbo, then change the reference in init.sqf to point to the updated location. You can also create a new file with just the additions required for vector build and add a new call in init.sqf, to save mission file size.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...