After bugfix of T165943 server not crashing anymore but I see in crashlog those errors:
[DayZAnimalCommandScriptClass::Initialize] :: [ERROR] :: DayZAnimalCommandScript first constructor parameter must be inherited from DayZAnimal.
I am really confused now.
It reporting error on this line:
DayzDogCommandStay cmd = new DayzDogCommandStay(DayZAnimal.Cast(this));
and my Scripted Command looks like:
class DayzDogCommandStay extends DayZAnimalCommandScript { protected Dayz_Doggo m_Dog; protected DayzDogST m_ST; void DayzDogCommandStay( DayZAnimal pAnimal ) { m_Dog = Dayz_Doggo.Cast(pAnimal); m_ST = m_Dog.GetAnimST(); } void ~DayzDogCommandStay() { }
I tried DayZAnimal, AnimalBase which I have as first parameter in contructor is inherited from DayZAnimal, then explain me why it complains now?