-
Content Count
73 -
Joined
-
Last visited
-
Medals
Everything posted by aimgame
-
Can anyone please explain this: Within one MP session the score player command is calculated according to the faction the player joined first. Even if he then relogged for another faction and changed the score using the addScore command, score player command will give the score value that was in the first faction. I.e.: - i joined WEST faction and get 100 points. (score player == 100; // its ok) - then i relogged to EAST faction - pressing P shows table with my score in WEST and in EAST - both got 100. (score player == 100; // its ok, but really not) - while playing as EAST i get another 15 points+ by killing some units, so in scores table (P) i have 115 as EAST player and 100 as WEST. (score player == 100; // still! WTF?!) - while playing as EAST i use addScore command to add more 50 points for myself, so in scores table (P) i have 165 as EAST player and 100 as WEST. (score player == 100; // still! WTF?!!!) If i changed faction, how can i get my actual score of my actual faction???
-
so-so SOLVED: - score player returns only the score of player in faction he joined first. (still stupid) - (getPlayerScores player) select (count (getPlayerScores player) - 1) returns the player's actual score in the current faction.
- 1 reply
-
- 1
-
-
Hi people! Im trying to invent football script for a3. And in Editor it already works pretty fine. But in MP there's something strange in the neighborhood way it works - first few seconds i can easely kick and punch the ball and it jumps and flyes like it should. But then suddenly it stucks in a spot and just spins around itself if i kick it, but it's not moving anywhere... Anyone have any ideas how come? P.S. If there was something that turns off the simulation, i guess the ball wouldn't spin then. Also it doesn't really matter what way i create the ball: whether its from server or a client - situation is the same.
-
I guess there's got to be some other solution with one single ball... Any ideas? Please!
-
Tried to solve radicaly - respawn the ball on every kick:) So it is on each player - when kicking: 1. deleteVehicle ball 2. createVehicle ball in the same place 3. this new ball is local for the player so he can kick it... BUT! This couse another problem - players spawn multiple balls on every kick, even though i delete extra ones(( Probably it is due to out of sync.
-
You mean i need to remoteExec the kicking of the ball? But wouldn't it be as much sametime ballkicks as number of players online?))) Maybe i should try spawning the ball by server and remoteExec the kicking to the server... so the server will move the ball...
-
Another problem appeared... The ball can be kicked only by the player that activated the script... And if i spawn the ball by server - no one can kick it((( Is there any command to make object to be availible for every player? Maybe some "reveal" or "setOwner" will help?
-
SOLVED! Objects with thingX simulation type work perfectly!
-
getText( configFile >> "CfgVehicles" >> "yourObjectType" >> "simulation" ) - for different objects: Unit - soldier static objs - house movable objs - thingX LandVehs - carx Planes - airplane Helis - helicopterrtd Ships/boats - shipX For some reason "plp_bo_BeachBallRed_Mvl" got shipX simulation type. I.e. "Land_Volleyball_01_F" and "plp_bo_VolleyBall_Mvl" got thingX simulation... Im gonna try theese ones and get back with result:)
-
while {true} do { uisleep 2; if !(alive player) exitWith { _msg = name player; _msg = _msg + selectRandom[" killed"," get hit"," come on not again!"]; _msg remoteexeccall ["systemchat",-2]; }; }; - but that will work not only for shots, but for all player deaths. To check specifically shots (even if its not deadly), and not everything in a row, you need to use the Hit eventhandler: https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#Hit , where the _source will be a killer, so we can check his weapon. Or maybe eventhandler HitPart will be even better, cause there's a _projectile parameter that we can use to check if it was a bullet.
-
Anyone? Please🙂
-
Here's a short video of this problem - - first few seconds everything is perfect, but then... - turning the simulation off and on - doesn't help. By the way, if i make setPos for this stucked ball it rolls a bit by itself for 1-2 sec, but then stops again and not moving like on video. I'm already thinking whether I won't have to prescribe the physics of movements for this manually... so that the ball can roll and fly through the setPos... but that would be so dumb football((
-
Sure:) i have an NPC that allows to register on the match, with this code: private["_trig","_gotBall"]; _trig = [_this,0,objNull,[objNull]] call BIS_fnc_param; if (isNull _trig) exitWith {}; _gotBall = false; { if ("plp_bo_beachballred.p3d" in str _x) exitWith {_gotBall = true}; } forEach (vehicles inAreaArray _trig); if (_gotBall) exitWith {hint "The match is already started! Registration not allowed!"}; player setVariable ["isFootballist",true]; hint "You are registered as a participant!"; Then i have a football zone trigger: private["_trig","_pos"]; FTBLtrig = [_this,0,objNull,[objNull]] call BIS_fnc_param; if (isNull FTBLtrig) exitWith {}; if (vehicle player != player) exitWith {hint "Cant play in vehicle!"}; if !(currentWeapon player isEqualTo "") exitWith {hint "Cant play with weapon!"}; if !(primaryWeapon player isEqualTo "") exitWith {hint "Cant play with weapon!"}; if !(secondaryWeapon player isEqualTo "") exitWith {hint "Cant play with weapon!"}; if !(handgunWeapon player isEqualTo "") exitWith {hint "Cant play with weapon!"}; if !(player getVariable["isFootballist",false]) exitWith {hint "You're not registered!"}; _pos = position FTBLtrig; [FTBLtrig] execvm "aims_footballSpwnBall.sqf"; while {player inArea FTBLtrig} do { player allowDamage false; FTB_EH = (findDisplay 46) displayAddEventHandler ["MouseButtonDown",{ if (player inArea FTBLtrig) then { if ((_this select 1) == 0) then { if ((typeOf cursorObject in ["plp_bo_VolleyBall_Mvl","plp_bo_BeachBallRed_Mvl"]) and ((cursorObject distance player) < 3)) then { [parseText format["<t font='PuristaBold' size='1.6'>Pass!</t><br />speed: %1 km/h",round(speed player)], true, nil, 7, 0.7, 0] spawn BIS_fnc_textTiles; _initial_speed = 8; _velocity = eyeDirection player vectorMultiply _initial_speed; _vel = _velocity; cursorObject setDir (direction player); cursorObject setVelocity [ (_vel select 0), (_vel select 1), (_vel select 2) ]; }; } else { if ((typeOf cursorObject in ["plp_bo_VolleyBall_Mvl","plp_bo_BeachBallRed_Mvl"]) and ((cursorObject distance player) < 3)) then { [parseText format["<t font='PuristaBold' size='1.6'>Kick!</t><br />speed: %1 km/h",round(speed player)], true, nil, 7, 0.7, 0] spawn BIS_fnc_textTiles; _initial_speed = 7; _velocity = eyeDirection player vectorMultiply _initial_speed; _vel = _velocity; cursorObject setDir (direction player); cursorObject setVectorUp [0,0.15,0]; cursorObject setVelocity [ (_vel select 0), (_vel select 1), ((_vel select 2) + _initial_speed + 2) ]; }; }; }; }]; uisleep 0.5; findDisplay 46 displayRemoveEventHandler ["MouseButtonDown",FTB_EH]; if !(player inArea FTBLtrig) exitWith {[FTBLtrig] execVM "aim_footballClientOut.sqf"}; if (vehicle player != player) exitWith {hint "Cant play in veh!"}; if !(currentWeapon player isEqualTo "") exitWith {hint "Cant play with weap!"; player allowDamage true;}; if !(primaryWeapon player isEqualTo "") exitWith {hint "Cant play with weap!"; player allowDamage true;}; if !(secondaryWeapon player isEqualTo "") exitWith {hint "Cant play with weap!"; player allowDamage true;}; if !(handgunWeapon player isEqualTo "") exitWith {hint "Cant play with weap!"; player allowDamage true;}; }; The ball spawned if player is in trigger and is registered on match: private["_trig","_pos","_ball","_gotBall"]; _trig = [_this,0,objNull,[objNull]] call BIS_fnc_param; if (isNull _trig) exitWith {}; _gotBall = false; { if ("plp_bo_beachballred.p3d" in str _x) exitWith {_gotBall = true}; } forEach (vehicles inAreaArray _trig); if (_gotBall) exitWith {hint "The match is already started! The ball is on the field!"}; { deleteVehicle _x; } forEach nearestObjects[_trig,["plp_bo_BeachBallRed_Mvl"],2000]; _pos = position _trig; [parseText format["<t font='PuristaBold' size='1.6'>Ball drop</t><br />in 5 sec.",round(speed player)], true, nil, 7, 0.7, 0] spawn BIS_fnc_textTiles; uisleep 1; [parseText format["<t font='PuristaBold' size='1.6'>Ball drop</t><br />in 4 sec.",round(speed player)], true, nil, 7, 0.7, 0] spawn BIS_fnc_textTiles; uisleep 1; [parseText format["<t font='PuristaBold' size='1.6'>Ball drop</t><br />in 3 sec.",round(speed player)], true, nil, 7, 0.7, 0] spawn BIS_fnc_textTiles; uisleep 1; [parseText format["<t font='PuristaBold' size='1.6'>Ball drop</t><br />in 2 sec.",round(speed player)], true, nil, 7, 0.7, 0] spawn BIS_fnc_textTiles; uisleep 1; [parseText format["<t font='PuristaBold' size='1.6'>Ball drop</t><br />in 1 sec.",round(speed player)], true, nil, 7, 0.7, 0] spawn BIS_fnc_textTiles; uisleep 1; [parseText format["<t font='PuristaBold' size='1.6'>Start!</t><br />",round(speed player)], true, nil, 7, 0.7, 0] spawn BIS_fnc_textTiles; systemchat format["Ball drop: %1",_pos]; _ball = createVehicle ["plp_bo_BeachBallRed_Mvl", [(_pos select 0),(_pos select 1),15], [], 0, "CAN_COLLIDE"]; //plp_bo_beachballred.p3d _ball allowDamage false; _ball enableSimulation true; { "The match is started!" remoteexeccall ["systemchat",_x]; } forEach AllPlayers; If player is out of the trigger: private["_trig","_pos"]; _trig = [_this,0,objNull,[objNull]] call BIS_fnc_param; if (isNull _trig) exitWith {}; _pos = position _trig; systemchat "You've abandoned football zone! If the ball is out of the field - get back and there will be a new ball drop in center."; hint "You've abandoned football zone! If the ball is out of the field - get back and there will be a new ball drop in center."; player allowDamage true; For now this is all i've got:)
-
Got the very same stuff on my server... Lightnings with DLC icons and also some DLC papers/journals falling from the sky... Every 5-15 min. Theese effects are local to every player - no one else see yours, they see their own... How to turn it off???
- 7 replies
-
- eden editor
- dlc
-
(and 1 more)
Tagged with:
-
Have you ever tryed to attach yourself to the remote controlled unit ? It seems when you control a unit you are immovable... I.e. place some ai unit, then: player attachto [myUnit, [-0.05, -0.12, -0.86], "attachme", true]; player remoteControl myUnit; myUnit switchCamera cameraView; RC works, i can rotate unit, but not walk/run. It just stucks at one place. If i execute only: player remoteControl myUnit; myUnit switchCamera cameraView; then ofcourse i can make unit walk and run. So the question is - how to make unit move WITH controlling player attached to it? Any thoughts, please?
-
Hi! Can anyone please tell - how to activate the lightbars (cop/ems) that are in the car's config.cpp(bin) file? What function i should use to make Lightbar1_1 and Lightbar1_8 blink? class Reflectors : Reflectors { class Lightbar1_1 { color[] = {125, 0, 0}; ambient[] = {125, 0, 0}; position = "Lightbar1_1_pos"; direction = "Lightbar1_1_dir"; hitpoint = ""; selection = "Lightbar1_1"; size = 1; innerAngle = 120; outerAngle = 360; coneFadeCoef = 10; intensity = 1.5; useFlare = 0; dayLight = 1; flareSize = 0.2; flareMaxDistance = 25; class Attenuation { start = 0; constant = 20; linear = 0; quadratic = 0.5; hardLimitStart = 5; hardLimitEnd = 15; }; }; class Lightbar1_8 : Lightbar1_1 { position = "Lightbar1_8_pos"; direction = "Lightbar1_8_dir"; selection = "Lightbar1_8"; }; };
-
SOLVED: _veh animateSource ["Lightbar",1]; "Lightbar" is the model part name in model.cfg and "Lightbar1_1" and "Lightbar1_8" - are the colors of this part.
-
Hi, guys! Is there any way to disable the TacticalView fully? I have this keyHandler check: if (_code in (actionKeys "TacticalView")) exitWith {true}; But players still able to enter TacticalView somehow... Maybe there is something like currentVisionMode command, but the one that works with TacticalView??? Or any other way to disable it?
-
Thank you, but disabling 3rd person is not an option. Its like killing flyes with the hammer.
-
Anyone?
-
Hi all! I have this simple script of fuel consumption working in EDEN editor pretty well: _veh = vehicle player; _rate = 0.003 ; _loadMultiplier = 0.003 ; _tooSlowRate = 0.004 ; _tooFastRate = 0.008 ; _speedMult = 0; while {true} do { if ((alive _veh) and (_veh != player) and (isengineon _veh) and ((fuel _veh) > 0)) then { _crew = count( crew _veh); _load = _crew * _loadMultiplier; _speed = speed _veh; if(_speed < 30 ) then { _speedMult = _tooSlowRate; }; if(_speed > 90 ) then { _speedMult = _tooFastRate; }; _realLoad = _rate + _load + _speedMult; _veh setFuel ( (fuel _veh) - _realLoad); }; sleep 5; }; But it's not work on dedi server(( Can anyone help with this? P.S. Server mod: AltisLife 4.4r4, if it mean something... Tryed both - server and client sides...
-
How to add magazines to current weapons?
aimgame replied to ljcampos's topic in ARMA 3 - MISSION EDITING & SCRIPTING
How about BIS_fnc_compatibleMagazines ?😉 -
Can anyone help with this: 1) i have the map source, if i open it in TB and remove some object or the whole layer of objects and save it (all in all do smth without pressing Generate layers) - it saves just fine, export it to WRP and make PBO - very fine! No glitches at all. Just perfect! 2) BUT if i press Generate layers and then > WRP > PBO - somehow one of surfaces becomes broken... this one - GdtConcrete[] = {{200,200,200}}; - in Buldozer and in EDEN it has very same glitch - in some places it is absent, in some - its present, in few places i can even see the border where it dissapeares. Here are the screenshots of it all: http://aimgame.ru/images/brdr.jpg http://aimgame.ru/images/border.jpg http://aimgame.ru/images/loop.jpg http://aimgame.ru/images/grass.jpg I've tried everything 10 times already... i guess i just dont know something... 🙂
-
Hi! Anybody knows how to get the text from an element of currently opened hud? I.e. inventory hud has a button called "Ground" at left top corner... So how to get this text "Ground"??? Here is what i've already done in this direction - _arr = []; //array of all non-empty-text elements { _y = _x; { for "_i" from 0 to (lbSize _x) do { //looking every element of control if !((_x lbText _i) isEqualTo "") then { //if text is not empty _arr pushBack (_x lbText _i); //add it to array }; }; } forEach (allControls _y); //looking all controls in all displays } forEach AllDisplays; //looking all displays _res = _arr findIf {_x in ["Ground"]}; //find element with text "Ground" _resLoc = _arr findIf {localize _x in ["Ground"]}; //find element with localized text "Ground" systemchat str _arr; //watching array systemchat (str _res + str _resLoc); //watching indexes of elements (if founded) systemchat str (count _arr); //watching count of array elements So i get somewhere around 100 elements (testing in EDEN) but not the "Ground" element! Even if my inventory hud opened... How to find it?)))
-
Huge apriciate!