if(%mnt.getDatablock().getName() $= "VEHICLENAMEVehicle")
if(%mnt.getClassname() $= "FlyingVehicle" || %mnt.getClassname() $= "WheeledVehicle") //Do stuffYou could also doif(strStr(%mnt.getClassname(),"Vehicle") != -1) //Do stuff
if(%mnt.getDatablock().getName() $= "TronLightBikeVehicle")anyone see a similarity?
Does it even matter? He's learning how to script, what's wrong with that?
if(striPos(%obj.getClassName(),"Vehicle") >= 0)
I use this:Code: [Select]if(striPos(%obj.getClassName(),"Vehicle") >= 0)
I don't think striPos is default...
if ( %obj.getType() & $TypeMasks::VehicleObjectType )
This is for any vehicle, including playertype vehicles.
Bot vehicles, such as the horse