LUA Scenedit_AddUnit vs. Scenedit_SetUnit (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios



Message


bearhunter007 -> LUA Scenedit_AddUnit vs. Scenedit_SetUnit (3/19/2017 10:12:14 PM)

As I understand it from the commandlua.github.io website you can add a unit and set its base for a new unit. However you can only read the base for a unit with the Scenedit_SetUnit() function.

Is my interpretation of the "NewUnit" vs "Unit" arguments in the respective functions correct?

Thks,

Bearhunter007




michaelm75au -> RE: LUA Scenedit_AddUnit vs. Scenedit_SetUnit (3/20/2017 10:19:40 AM)

You use 'unit = Scenedit_GetUnit()' to read the unit information, and then use 'unit.base' to see it's base.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.21875