problem with types is I have set my player type to global so i can reference it anywhere.
so now I can call it 'p\model' in my update player function
rather than 'player1\model'
the problem is that if I try to refer to it as p\model in my 'update enemy' function its returns as 'entity must be a type'.
conversely if i try and refer to my enemy as 'e\model', in the 'update player' function the same thing happens
ie 'entity must be a type'.
syntax wise 'p\model' and 'e\model' work fine inside their own update functions, but not when referencing each other for some reason
Bsically I am trying to copy the enemy1\model to make a generic level enemy and have them all with the same behavior/triggers.
so now I can call it 'p\model' in my update player function
rather than 'player1\model'
the problem is that if I try to refer to it as p\model in my 'update enemy' function its returns as 'entity must be a type'.
conversely if i try and refer to my enemy as 'e\model', in the 'update player' function the same thing happens
ie 'entity must be a type'.
syntax wise 'p\model' and 'e\model' work fine inside their own update functions, but not when referencing each other for some reason
Bsically I am trying to copy the enemy1\model to make a generic level enemy and have them all with the same behavior/triggers.