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.
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.
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.
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.
What is the syntax for just an IR marker? If I take out the laser code altogether I get an error.
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.
Thanks! @@LockDCS
@@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.
@@LockDCS The createInfraRed function worked reliably for me.
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.
issue resolved