How can i change character-size while riding a vehicle?

Post Reply
User avatar
Drachenbauer32
Member
Posts: 105
Joined: Wed Aug 28, 2019 18:11

How can i change character-size while riding a vehicle?

by Drachenbauer32 » Post

Hello

As i tryed out some vehicle-entities, my character was shrinked down alot while riding them.

How can i set this character-size-scale?

User avatar
paramat
Developer
Posts: 3679
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: How can i change character-size while riding a vehicle?

by paramat » Post

Currently you cannot, but i solved this by using:
visual_size = {x = 2.0, y = 2.0},
And defining the vehicle entity to be smaller to compensate for that.
Example code, my own version of boats mod that uses a nodebox for the boat:
https://github.com/paramat/kuutiopeli/b ... s/init.lua
Even weirder, the nodebox is scaled up by 'visual_scale * 1.5', so has to be defined at 1/3rd size.

User avatar
Drachenbauer32
Member
Posts: 105
Joined: Wed Aug 28, 2019 18:11

Re: How can i change character-size while riding a vehicle?

by Drachenbauer32 » Post

But how do i realize textures for nodebox type vehicles, wich are bigger than 3 nodesizes and use drawtype = "nodebox", (some nodebox-values bigger than 0.5)?

For smaller ones i think, i can use textures with 48x48 pixels and draw the graphics in the right size at the richt location on this canvas to keep the pixels the same size as on my normal building nodes.

vehicles, wich use a node with a .obj-mesh drawtype = "mesh", are no problem, even, if huge sized.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest