DCS World Mission Editor Laser Designation Scripting

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ม.ค. 2025

ความคิดเห็น • 8

  • @limboski696
    @limboski696 11 หลายเดือนก่อน

    Thanks for the tutorial....wanted to practice against laser targets like Enigma's Cold War server has and I did not want to go through the whole 9-line rigmarole. Got it working.

  • @mecampbell30
    @mecampbell30 11 หลายเดือนก่อน +1

    What is the syntax for just an IR marker? If I take out the laser code altogether I get an error.

    • @LockDCS
      @LockDCS  11 หลายเดือนก่อน +1

      Remove the Comma after the target variable first. If that doesn't work, there is a separate function called createInfraRed that has the same variables but no code that might work better.
      It could easily be that I have been old info on how the create laser function works in creating an IR beam.

    • @mecampbell30
      @mecampbell30 11 หลายเดือนก่อน +1

      Thanks! @@LockDCS

    • @LockDCS
      @LockDCS  11 หลายเดือนก่อน +1

      @@mecampbell30 let me know if that works. I'm always down to double check my work and learn new things. Especially with how the game changes so much.

    • @mecampbell30
      @mecampbell30 11 หลายเดือนก่อน +1

      @@LockDCS The createInfraRed function worked reliably for me.

  • @waffle3470
    @waffle3470 หลายเดือนก่อน

    Hey I could use some help, I am getting the following error when i try to run the scrip in my MIZ. [string 'AFAC = Unit.getByName('Spotter-1')...']:3:'='expected near "Name"
    This is the script that I am running:
    AFAC = Unit.getByName('Spotter-1')
    Target = Unit.getByName('Ground-2-1')
    Laser Name = Spot.createLaser(Spotter-1, {x = 0, y = 0, z = 0}, Ground-2-1:getPoint(1688)
    I am using the pilot name, should I be using the group name? I still get the same error when i use the group name as well.

    • @waffle3470
      @waffle3470 หลายเดือนก่อน

      issue resolved