Okay I have some code that I have been looking at as a refrence to what I am trying to do. I have however run into some confussion. The class extends from the bot class and has a functions called AddInventory. Now I have search this functions and it only exsit in the Pawn class.
I understand that the Super key word refers to the parent class and that Super(className).function() would call the superclasses className function.
But how can you use Super(Pawn) inside a bot subclass. This would mean Pawn is a parent of Bot which it isn't.
I understand that the Super key word refers to the parent class and that Super(className).function() would call the superclasses className function.
But how can you use Super(Pawn) inside a bot subclass. This would mean Pawn is a parent of Bot which it isn't.
Code:
function bool AddInventory( inventory NewItem )
{
Super(Pawn).AddInventory(NewItem);
//Other code.
}