Jump to content

JohnAJ

Member
  • Content Count

    4
  • Joined

  • Last visited

  • Medals

  • Medals

Everything posted by JohnAJ

  1. I'm developing a mod where I need to get the position of the point that the player is aiming at. cursorTarget obviously won't cut it, but this thread suggested using the following: screenToWorld [0.5, 0.5] This works great most of the time. Not for bushes, but that's acceptable. Still, some buildings just don't want to play along. For example, the multistoried building along the Chernogorsk docks behaves really weird in conjunction with the screenToWorld command, as depicted in this video: As you can see, when you aim towards the top of the building, the target position changes from x ~ 7000 to x ~ 5000. Can this be fixed, or is there a better solution?
  2. Hello, I'm currently working on a project and I need to play a sound and display a titleText at the same time. However, I learned that this doesn't work very well. I've replicated the behavior in the following mission: http://jocap.github.io/files/playSoundBug.Desert_E.zip First, a normal titleText is displayed for 3 seconds. Everything works as expected. Then, another titleText is displayed, but this time, a sound plays at the same time, and now, the titleText merely flashes and instantly disappears. The sound plays as expected. (Also: I miswrote in a hintC in the mission. I meant 3 seconds instead of 4 seconds.) Has anyone encountered this before and have a solution, or should I report it as a bug? If so, where do I do that? I couldn't find a bug tracker for Arma 2: OA. Thank you, John
  3. Hi! I created a batch script that lets you choose from your created missions and opens up the corresponding directory in explorer.exe and Sublime Text. @echo off set /a c=1 setlocal ENABLEDELAYEDEXPANSION for /f "usebackq delims=|" %%f in (`dir /b "E:\Documents\ArmA 2 Other Profiles\JohnAJ\missions"`) do ( set files[!c!]=%%f echo !c!, %%f set /a c+=1 ) :Ask set /P num=Please enter number: if "%num%"=="" goto Ask %SystemRoot%\explorer.exe "E:\Documents\ArmA 2 Other Profiles\JohnAJ\missions\!files[%num%]!" sublime_text "E:\Documents\ArmA 2 Other Profiles\JohnAJ\missions\!files[%num%]!" > NUL exit /b E:\Documents\ArmA 2 Other Profiles\JohnAJ\missions is my Arma 2 missions directory. Replace all three occasions with the directory path on your system. Also, make sure that the Sublime Text installation directory is in your PATH. Add ;C:\path\to\sublime\text to Computer -> Properties -> Advanced -> Environment Variables -> PATH -> Edit. If you don't want the Explorer window to open, remove the line starting with %SystemRoot%\explorer.exe. Let me know what you think! You could definitely make some improvements (like storing the missions directory path in a variable). Thanks! (I also uploaded it as a gist on Github.)
  4. JohnAJ

    AlphaSounds

    I've been looking for this, as I can hardly ever hear my footsteps with my current headset for some reason. Great job, man!
×