JayWood
New Member
I'll be honest, I've not quite been able to grasp the Arma scripting language so to speak. Yet I'm not totally ignorant either. I have 4 years background in PHP, JavaScript, and even a little Java itself, so I tend to pick up pretty quickly and with a little advice from here to there. I also know Lua (Minecraft/CC) and LSL for those Second Life guys/gals out there.
Enough about me, on to the situation. I've been trying to decipher R3F's towing system for abit now, and I have it nailed down, did I mention I don't speak French... I've noticed the remoquer_selection.sqf is what handles the initial towing of the object.
I've also found out that the lock_veh.sqf in dayz_code/actions is what handles the locking of the vehicle. So the geek in me said 'Hey what if I can use the locked variable in a != statement to prevent...' you get the point. From what I gather the dayzLockVehicle is a public variable, but I'm not too sure what this means:
Which comes from this:
I assume the first snippet is stored as an array, similar to the code above:
Rather the variable is actually stored publicly, meaning it's accessible within any other script, I do not know. I really just want to use a custom conditional like so:
If someone would be willing to explain the logic behind the lock_veh.sqf to me I believe I can figure out the rest, I just don't know how to access the locked variable.
Enough about me, on to the situation. I've been trying to decipher R3F's towing system for abit now, and I have it nailed down, did I mention I don't speak French... I've noticed the remoquer_selection.sqf is what handles the initial towing of the object.
I've also found out that the lock_veh.sqf in dayz_code/actions is what handles the locking of the vehicle. So the geek in me said 'Hey what if I can use the locked variable in a != statement to prevent...' you get the point. From what I gather the dayzLockVehicle is a public variable, but I'm not too sure what this means:
Code:
dayzLockVehicle spawn local_lockUnlock
Which comes from this:
Code:
if(player distance _vehicle < 10) then {
if (local _vehicle) then {
dayzLockVehicle spawn local_lockUnlock
} else {
publicVariable "dayzLockVehicle";
};
};
I assume the first snippet is stored as an array, similar to the code above:
Code:
dayzLockVehicle = [_vehicle,true];
Rather the variable is actually stored publicly, meaning it's accessible within any other script, I do not know. I really just want to use a custom conditional like so:
Code:
if(_isLocked == true){
...
}
If someone would be willing to explain the logic behind the lock_veh.sqf to me I believe I can figure out the rest, I just don't know how to access the locked variable.