How to check if player is a certain playertype before mounting image to them

Author Topic: How to check if player is a certain playertype before mounting image to them  (Read 472 times)

I want to mount an image to my custom player type and i dont want it to be possible to mount that image to any player type accept my image, Also how would i go about mounting an image to my custom player type when it spawns

if (player datablock is [something something])
{
   [something]mountImage( [image],[node?]);
}


i'm guessing at psuedocode here

If(!(%player.getdatablock() $= "yourdatablock"))
       return;

%player.mountImage stuff;

getDatablock() will return the id, so you need a .getName() after it.