Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
How to check if player is a certain playertype before mounting image to them
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to check if player is a certain playertype before mounting image to them (Read 562 times)
SuperFlaminninja³
February 14, 2016, 08:04:50 PM
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
Ad Bot
Advertisement
The Resonte!
February 14, 2016, 08:08:06 PM
if (player datablock is [something something])
{
[something]mountImage( [image],[node?]);
}
i'm guessing at psuedocode here
Path
February 14, 2016, 08:16:23 PM
If(!(%player.getdatablock() $= "yourdatablock"))
return;
%player.mountImage stuff;
Zeblote
February 14, 2016, 08:35:32 PM
getDatablock() will return the id, so you need a .getName() after it.
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
How to check if player is a certain playertype before mounting image to them