How to add init code to an object spawned through a script? from armadev