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

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

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

by Drachenbauer32 » Tue Oct 29, 2019 19:54

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: 3443
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

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

by paramat » Wed Nov 06, 2019 21:20

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/blob/master/mods/boats/init.lua
Even weirder, the nodebox is scaled up by 'visual_scale * 1.5', so has to be defined at 1/3rd size.
 


Return to Modding Discussion



Who is online

Users browsing this forum: No registered users and 5 guests