Gizmokev Posted October 30, 2020 Share Posted October 30, 2020 Ok here goes trying to explain my predicament. ARTY has the ability to use text from the F10 map to create a fire solution for artillery units. I am looking to adapt the script to create something new to do with the entering of script in he F10 menu. So far I have managed to decipher the script to the point of pulling what I want but I am stuck. In the moose lua file at line 76036 or thereabouts is this local = assignments {} --this creates a table called assignments-- assignments.engage = false assignments.battery = {} --another table-- assignments.loadsofotherstuff = tables and false entries In my head (not ever done any scripting before) this means there is a table called assignments with data inside like so [1] assignments.engage boolean result [2] assignments.battery table [3] assignments.loadsofotherstuff either tables or boolean After loads of scripting mainly taken from moose lua the script ends with return assignments end So in my script I then try to do a function like this if assignments.engage = true then do something I get an error in the log which says expecting <'name'> after if What am I missing? Is it the fact that the assignments.engage is actually under a name of engage as the assignments. bit doesnt count or is it something completely different? You help is greatly appreciated in educating me on my errors Link to comment Share on other sites More sharing options...
funkyfranky Posted October 30, 2020 Share Posted October 30, 2020 That error is probably because you did not put two equal signs in the if clause. if assignments.engage == true then do something A warrior's mission is to foster the success of others. i9-12900K | MSI RTX 3080Ti Suprim X | 128 GB Ram 3200 MHz DDR-4 | MSI MPG Edge Z690 | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2 RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss Link to comment Share on other sites More sharing options...
Recommended Posts