Once again, I am coding yet another chatbot, but this time it shall be a huge project.
How would I go about creating an object inside another object, Nexus taught me how it was better to use objects to store variables than just putting global variables.
%obj = new scriptObject(tank)
{
var1 = 40;
var2 = 20;
};
tank.kill();
function tank::kill()
{
(coding here)
}
But what I am trying to do is place an object inside another object, if it's possible can somebody tell me how