View Single Post
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 03-18-2016 , 20:23   Re: Dynamic Objects and Properties - v006 - [2016.03.15]
Reply With Quote #34

After some head scratching this is what im thinking.

Code:
Dynamic someobj = Dynamic.GetByName("pluginname_settings");
Code:
If (!someobj.IsValid)
Code:
someobj = Dynamic();
someobj.SetName("pluginname_settings");
This would enable you to set a unique name for any dynamic object. Any other plugins can then Dynamic.GetByName without having to parse the obj index through natives.

In the sanerio above. Moomoo could try find a dynamic object by name on plugin start.
__________________
Neuro Toxin is offline