Lineaxe Posted June 11, 2020 Posted June 11, 2020 (edited) After many attempts at trying to use the DCS library and an example shown here in the forums , I had kept getting errors. Looking into lua documentation I found that #self was required when using the . syntax . Anyhow , playing around with the example and all the reading up I did I came up with a WORKING example of using get life with a static . No more nil methods , or can't find #self types of :noexpression:ERRORS .Whew ..... tempStaticObj = StaticObject.getByName("Ammo #004") tempSOhealth=tempStaticObj.getLife(tempStaticObj) Edited June 11, 2020 by Lineaxe typos
Pikey Posted June 11, 2020 Posted June 11, 2020 ah, if you want me to break this for you try a smoke effect. Statics can be very odd behaving. ___________________________________________________________________________ SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *
Lineaxe Posted June 12, 2020 Author Posted June 12, 2020 (edited) I was looking into the cargo hook unhook with such things as REMOVE BULLET RIGID BODY and add soft body constraint and the like . Brrrrr.... I seem to be digging into some weird things.. And I just posted something on removing the Tires from a zone radius after a scheduled time. I still have to get used to the lua syntax in the first place .... Brrrrr..... nice sample code I must admit ... Thanks !! Edited June 13, 2020 by Lineaxe
Recommended Posts