Viba
Member-
Content Count
175 -
Joined
-
Last visited
-
Medals
Community Reputation
1 NeutralAbout Viba
-
Rank
Sergeant
-
Need help with towing script!
Viba replied to Yolo Joe's topic in ARMA 3 - MISSION EDITING & SCRIPTING
At least in 1.32 setvelocity didn't affect brakes. -
BIS_fnc_MP not executing given code serverside
Viba replied to Heeeere's johnny!'s topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yes my point exactly, why include BIS_fnc_MP unnecessarily when you can just use the publicvariableserver and addpublicvariableeventhandler. -
BIS_fnc_MP not executing given code serverside
Viba replied to Heeeere's johnny!'s topic in ARMA 3 - MISSION EDITING & SCRIPTING
Why not just use publicvariableserver and addpublicvariableeventhandler? -
Ah, should've read the post a bit better :)
-
#define getHPdmg(hpname) _veh getHitPointDamage hpname _veh = _this; if !(typeName _veh == "OBJECT") exitWith { diag_log "ERROR getHitPoints, _this is not an object"; []; }; _vehCfg = configFile >> "CfgVehicles" >> typeOf _veh; _hitPointsVeh = _vehCfg >> "HitPoints"; _turrets = _vehCfg >> "Turrets"; _hitpoints = []; for "_i" from 0 to ((count _hitPointsVeh)-1) do { _hpname = configName (_hitPointsVeh select _i); _hitpoints pushback [_hpname, getHPdmg(_hpname)]; }; for "_i" from 0 to ((count _turrets)-1) do { _hitPointsTurret = (_turrets select _i) >> "HitPoints"; for "_j" from 0 to ((count _hitPointsTurret)-1) do { _hpname = configName (_hitPointsTurret select _j); _hitpoints pushback [_hpname, getHPdmg(_hpname)]; }; }; //Returns [["hitpointname",damageasinteger],["name",integer]] _hitpoints;
-
Need help with towing script!
Viba replied to Yolo Joe's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yup doesn't help having AI or actual player inside the vehicle, brakes are still on. -
[GUIDE] Arma 3 Scripting Guide, Part 1: Variables and Data Types
Viba replied to dreadedentity's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Looks good, could've certainly used a guide like this when I started scripting. A quick thing I could think of would be to include missionNamespace, uiNamespace and profileNamespace, if you are willing to update and improve the guide even further :) -
Need help with towing script!
Viba replied to Yolo Joe's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yes ofcourse attachTo has been used for a long time and is really easy to do. But wasn't the point of this thread to actually tow using the ropes? :) Edit: Just re-read your post, haven't actually tried that. Maybe best I'll go to sleep. -
Need help with towing script!
Viba replied to Yolo Joe's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Practically a loop is not going to cut it. You can probably simulate the correct physics but it takes alot of work and performance wise in a multiplayer game it's not ideal. The loop method was used pretty neatly in a towing script for aircraft in A2, can't remember the correct one but it looked pretty realistic. Instead all we need is a way to not have the breaks applied 24/7 on the vehicle :) -
Need help with towing script!
Viba replied to Yolo Joe's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Nope, you really need alot more fiddling around to simulate correct physics :) Looks pretty funny: -
[code] Varriables spelling check
Viba replied to mr_shadow's topic in ARMA 3 - MISSION EDITING & SCRIPTING
_moneyPile = createVehicle ["Land_Money_F", getpos player, [], 0, "CAN_COLLIDE"]; //This syntax is way faster than the old one _playermoney= player getVariable ["mymoney",0]; //Now _playermoney is 0 if the variable doesn't exist _moneyPile setvariable ["mymoney",_playermoney]; //Didn't quite get what you were trying to do, double the money amount the player had or just have the moneypile have the same amount? -
Need help with towing script!
Viba replied to Yolo Joe's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Been struggling with this one too. Lowering the center of mass made it possible to drag the vehicle without flipping, ofcourse the brakes are still on. A loop might get the job done with some fiddling but is really not a feasible solution at all. What we need is this: vehicle setHandbrake true/false -
Adding action to every type of object
Viba replied to mr_shadow's topic in ARMA 3 - MISSION EDITING & SCRIPTING
-
Adding action to every type of object
Viba replied to mr_shadow's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Far easier to just check what .p3d filename ATM:s have and do some string searching from the nearestObjects results with no classnames. -
Adding action to every type of object
Viba replied to mr_shadow's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Nothing, since the cursortarget doesn't return anything.