Jump to content


  • Content Count

  • Joined

  • Last visited

  • Medals

  • Medals

Community Reputation

13 Good

About Ed!

  • Rank

Profile Information

  • Gender

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. @mrcurry You made my year. I got a bit carried away with real life. I will add this to my mission and give you credit in all CAPS.
  2. A very good idea. I changed it a bit so you don't need the target. The next stumbling block is using the camera of the agent in the gunner seat. Aiming via the vehicle optics would be epic. Here is what I did: testcar addEventHandler ["GetIn", {_this execVM "carin.sqf";}]; /////////////////////////// //carin.sqf params ["_vehicle", "_position", "_unit", "_turret"]; handleClick = { _handled = false; if(_this select 1 == 0) then { vehicle player action ["UseWeapon", vehicle player, gunner vehicle player, 0]; _handled = true; }; _handled; }; if (driver _vehicle == player) then { (findDisplay 46) displayAddEventHandler ["MouseButtonDown", "_this call handleClick;"]; (findDisplay 46) displayAddEventHandler ["MouseButtonDown", ""]; DummyGunner = createAgent [typeof player, [0,0,0], [], 0, "FORM"]; DummyGunner moveingunner _vehicle; [_vehicle] spawn { params ["_vehicle"]; while {driver _vehicle == player} do { DummyGunner doWatch (positioncameratoworld [0,0,100]); sleep 0.1; }; deleteVehicle DummyGunner; (findDisplay 46) displayAddEventHandler ["MouseButtonDown", ""]; }; };
  3. Or perhaps is there a scripting command to force a unit to turn left or right, accelerate, brake etc? Maybe a magic switchMove or animate that can be called on the vehicle just like with doors etc?
  4. Is there a way to simultaneously control multiple units at the same time? Example: Controlling both the turret and driver units in a vehicle. (there is a post already on this, but too much flaming to revive). remoteControl seemed like the answer, but I failed. The closest I got was by switching control to the driver and gunner on each frame, but it was cancer for my eyes.
  5. Ed!

    Tracer Line script

    A quick search suggests that you described exactly this. Edit: You should consider rather posting on the already existing thread.
  6. I've been having trouble getting this to work due to the inability to build classes with their own members etc. It is hard (not impossible) to accomplish certain things. I've managed to do some A* algorithms in the past which involved nested arrays within nested arrays within nested arrays. The reason I want to use Voronoi diagrams, is because it uses site points (positions - example: trees, players, rocks etc.) and renders nodes and edges which are like central positions between the site points. This will be a non-random approach to replace BIS_fnc_findSafePos with guaranteed success (if there exists a solution given the environment). Every result that is not favorable can just be added as a site point to the algorithm which will lead to an intelligent algorithm which can evenly distribute objects over an area within any environment. I can do this with object orientated programming, but that would require me to build addons which I don't prefer.
  7. Changing the screen resolution without restarting the game causes issues with UI controls. Have you tried restarting your game after applying the new resolution?
  8. Ed!

    How to store a code.

    spawn makes it run in a different thread. call makes it run in the same thread.
  9. I will give you a C# project that I used to play around with performance counters and wmi. It is not a best practise, but you might be able to learn something from it. The output is as follows: The result comes from launching arma and then loading altis. You can paste the results in excel and graph them if you wish. The time intervals aren't constant either, but this will give you the information you need. Just take into mind that the first time you load a mission will take longer than the second time you load it because the resources are still stored in your memory. https://dl(dot)dropboxusercontent(dot)com/u/56725922/Resource%20Monitor%20-%20Copy(dot)rar I stripped some content from the project because it was actually used to monitor server performance during running queries on MSSQL and MySQL servers. So, there might be strange references. (Project from an old school assignment)
  10. Use performance counters externally or even integrate them with an extension
  11. Perhaps you can use the HandleDamage EH because it records the projectile that caused the damage. So you can refer to the last HandleDamage upon death. But I think that will only lead you to getting a list of weapons compatible with those projectiles, although you can use the currentWeapon if you get to ammo used by a primary weapon, secondary weapon or a pistol.
  12. https://forums.bistudio.com/topic/157999-dialogs-using-html/#entry2484180 Look at that. Maybe it could help. AFAIK html documents are static and cannot perform any actions
  13. Wouldn't it be great to create a complete functioning dialog based only on HTML documents?
  14. I have seen some threads touching the topic, but I did not find an answer/opinion I was looking for. Since scripting for Arma has allowed us to do many glorious things with our missions (example: integrating with databases), I thought it would be great if we could start dynamically creating dialogs using HTML and Javascript. Some other game engines already utilize this technology (although ARMA does too, but is very limited). Imagine creating dialogs like this: And then you can call it like this