second problem atm seems to be that i can't make the component tower function as a wallhub.
Or rather it does but when it has to place a new hub part when dragging the wall line the game crashes.
Experimented abit with the old wallhubs and it seems the game crashes if you give the wallhub a weaponsetupdate behavior.
So my second idea was to make the wallhub upgradable to my component tower.
The idea was (although abit abundant):
build wallhub (and/or drag walls/hubs)
Click wallhub to upgrade to component tower(new object)
click weaponupgrade on tower.
Again the game crashes when i click the upgrade button (basicly a replaceself function).
The code i used:
The plast weirdly allows to work sometimes but most of the time it crashes the game when you click the upgrade to the component tower.
Is there a better or right way to have my component tower function as a wallhub? (builds wallsegments etc)