Posts: 516
Thanks: 4227 in 14 Posts
14 Achievements
EventListener Regarding Boats
Hi everyone
In an attempt to add a fuel count for boats, I am looking into handling the kUsedVehicle event for Boats. However, from this code inside Vehicle class:
Code:
public virtual void OnCarEntered(Sim s)
{
if (!(this is Boat))
{
EventTracker.SendEvent(EventTypeId.kUsedVehicle, s, this);
}
...
Apparently, with comparison searching on the EventTypeId on NRaas, no events handle boats. It is actually a simple solution, to override this part (as it is marked "virtual") so that an Even is sent nonetheless. But what concerns me, is that I think EA has a reason to disable the SendEvent for boats (or do they????
)
Do you guys know if EA coding actually uses Event Listeners? (If no, that means they are only used by we modders, and that means EA behaviour won't be touched!)
Thanks