Well thanks for your help Chrono you still make beast add-ons.
I'm using
%driver = %vehicle.getMountNodeObject(0);
but it still won't work... And the console says still that getMountedObject isn't a command when I don't have it in my code (Yes I re executed. ) It says it's in line 0 too?
My current code is
package NewPackage
{
function wheeledVehicle::damage(%this, %obj, %sourceObject, %position, %damage, %damageType)
{
Parent::damage(%this, %obj, %sourceObject, %position, %damage, %damageType);
%driver = %obj.getMountNodeObject(0);
centerPrint(%driver.client,"<just:right><color:ffffff>You got hit" ,3);
}
};
activatePackage(NewPackage);