Jump to content

StaticObject.getByName finally works with flaggina an error


Recommended Posts

Posted (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 by Lineaxe
typos
Posted (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 by Lineaxe
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...