exil Posted August 23, 2017 Posted August 23, 2017 Gents! Still relativly fresh to scripting i'm trying different stuff. Now i tried a simple function like: if Unit.getByName('HUEY A'):inAir() == true then trigger.action.outText('OH NO', 15) end but it doesn't seem to work for me. I get no message when i'm airborne... Any advise would be appreciated! GeForce RTX 4090 Founders Edition - AMD Ryzen 7 5800X3D - 64Gb RAM - Win11 - HP Reverb G1 - Thrustmaster Warthog HOTAS (40cm extension) - VKB Sim T-Rudder MKIV Pedals
funkyfranky Posted August 23, 2017 Posted August 23, 2017 You need to schedule the call to that function somehow. Otherwise it is only executed once when your script is loaded. At least that would be my best guess since I don't know the rest of your code. A warrior's mission is to foster the success of others. i9-12900K | RTX 4090 | 128 GB Ram 3200 MHz DDR-4 | Quest 3 RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss
exil Posted August 23, 2017 Author Posted August 23, 2017 Perfect! Thanks! GeForce RTX 4090 Founders Edition - AMD Ryzen 7 5800X3D - 64Gb RAM - Win11 - HP Reverb G1 - Thrustmaster Warthog HOTAS (40cm extension) - VKB Sim T-Rudder MKIV Pedals
Recommended Posts