Author Topic: Ai TypeMask?  (Read 1939 times)

I can't find out what it is :(

I've looked through the $TypeMasks with Console + Tab but it's not saying anything.

$TypeMasks::PlayerObjectType

Horses don't get picked up in that.

Are you sure?

AIPlayers are just players under scripted control.


Well, these are the only ones to choose from:

$TypeMasks::CameraObjectType
$TypeMasks::CorpseObjectType
$TypeMasks::DamagableItemObjectType
$TypeMasks::DebrisObjectType
$TypeMasks::EnvironmentObjectType
$TypeMasks::ExplosionObjectType
$TypeMasks::FxBrickObjectType
$TypeMasks::GameBaseObjectType
$TypeMasks::InteriorObjectType
$TypeMasks::ItemObjectType
$TypeMasks::MarkerObjectType
$TypeMasks::PhysicalZoneObjectType
$TypeMasks::PlayerObjectType
$TypeMasks::ProjectileObjectType
$TypeMasks::ShapeBaseObjectType
$TypeMasks::StaticObjectType
$TypeMasks::StaticRenderedObjectType
$TypeMasks::StaticShapeObjectType
$TypeMasks::StaticTSObjectType
$TypeMasks::TerrainObjectType
$TypeMasks::TriggerObjectType
$TypeMasks::VehicleBlockerObjectType
$TypeMasks::VehicleObjectType
$TypeMasks::WaterObjectType


The horse is a bot. It doesn't get picked up by vehcile or player search.

Maybe its the code you're using.

MrPickle, while I've never tried searching for bots, I can tell you that they are an extension of the player object type.  Just like FlyingVehicleData is an extension of VehicleData, AIPlayer is an extension of Player.  So the search should work.  There is no object type "bot", silly.  "Bot" just happens to be the term everyone is familiar with, so it gets used a lot.

k It's working now.

What's a exploded car's tpye mask?

Come on, man.  Use your head.  I posted the entire list up there.

$TypeMasks::DebrisObjectType

I wasn't sure wether it was that or explosion

Well, debris is probably what it is when it first blows up.  It might be explosion once it starts tumbling.  I'm not sure.

When it's on fire, that's still Vehicle, when it's exploding and flying through the air, that's debris.