Topic category: User side tutorials
So, you wanna something like this?
you can do without animation too*, that work for chairs for example...
and not like pig with random rotations?
and more!, don't crashes and load with configured rotation!
So, follow me, i will explain how i do that.
Create a global variable, with name Playerfacing, Number, Global_world. 1.0
Create a new procedure, with global trigger "on player tick update"
Set the ifs and else if, if you don't now what is "else if", this is like " else,if", AHAHAHAH
this for example, is the same like the image above, but this will take more from your computer memory, so if you can, do with "else if".
* Example *
This will detect the direction at the player!
Create your entity, and save for now! because you need the name of entity for the next step.
Create a procedure with this configs, put name like "Chairspawninworld" or something like this
1- If you don't will use the animations.
2-If you will use Gecko lib animations.
is the same, but you need to put "is provided world remote" because it can crash your map
EDIT# The animation only works in another procedure like this
and i don't know why....
Now.. Save your procedure and put in your entity/Trigger [ on inital entity spawn ]
[ if your procedure name is like "Chairspawninworld", insert here ]
and if you are making a block,chair,or puppet like my gifs, disable the AI.
if you wanna to entity copy the direction of block under "like the gif in piston", this is tiny hard because
some blocks don't have direction "like grass" , and can do some bugs. " i mix the procedure with this another one, but that give me a lot of bugs.
if you want it, i will save you time to discover all directions.