Author Topic: I need help with my item changing playertype.  (Read 2813 times)

I have been making an addon which changes user's playertype for few seconds, but i dont know how to make it change back into specific playertype,
for example: when i use it as a horse playertype it turns me back into standard player after item's effect finishes.
Im not really good at making addons, this is my second or third addon ever made.

Any help would be appreciated.
« Last Edit: July 12, 2014, 12:54:06 PM by superluigi123 »

So you want to change the player to something, wait, and then change them back to what they originally were? (Like they were a horse, and then you change them into a tank, and then they change back into a horse). You could use Player::getDatablock() to get their datablock and schedules to wait to change them back.

So you want to change the player to something, wait, and then change them back to what they originally were? (Like they were a horse, and then you change them into a tank, and then they change back into a horse). You could use Player::getDatablock() to get their datablock and schedules to wait to change them back.

Yes, thats exactly what i wanted to do.
Thanks, I'll try it out asap.

This add-on changes the playertype when a specific image is mounted: http://forum.blockland.us/index.php?topic=262535.0