Hey all.
I am currently trying/wanting to get the hang of Torquescript itself and i would like to ask some things.
- Is there a good guide about those functions (like for example, OnFunction(whattoputhereD:))
I would like to know how the inputs work for functions, which you have to state and if there are any rules for it.
- Are datablocks something only Blockland haves?
I guess not, but to be sure, I'll ask.
-Why doesn't something like this work with me at all:
package FirstPersonPackage
{
function Armor::onAdd(%this,%obj,%a,%b,%c,%d)
{
%this.setdatablock(GuyArmor);
parent::onAdd(%this,%obj,%a,%b,%c,%d);
}
};
activatepackage(FirstPersonPackage);
Yes, this is exactly copied from another thing, but that doesn't explain why it doesn't work.
The console says when i test it, it can't find the function setdatablock.
I looked at the stickies but, either i didn't read them that good or it doesn't contain the information i need, because i still don't know the answers. D: