Custom Crosshair Monitor

EVG

Member
Good day. I want to add and change the standard CrosshairsMonitor script. I created a new MyCrosshairsMonitor script and completely copied the CrosshairsMonitor script, except for the script name. Now he is eating a lot of errors and does not work. What should I do to make my script work?
What errors refer to:
1.png2.png3.png
 

EVG

Member
Probably due to bad machine translation, you misunderstood me. In UFPS 1, I often used inheritance in scripts in order not to rewrite the original script. This helped to avoid problems when updating UFPS. When I try to inherit from CrosshairsMonitor, it shows a lot of errors.
P.S. I also inherited from SlotItemMonitor and there were no problems.
 

Justin

Administrator
Staff member
Inheriting is no problem with the CrosshairsMonitor - it is when you start to override methods that it could start to become a problem. Let me know if there are any methods that you make virtual in the base class so I can include that in the next update.
 

Justin

Administrator
Staff member
Check the execution order of your script - it could be executing before the view types have been deserialized.
 
Top