set_attach() disscussion

Post Reply
User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

set_attach() disscussion

by azekill_DIABLO » Post

after testing, i found that the API is not very well informed, coause it's not precised that set_attach() works with degrees, meanwhile all other functions works in radiant... which is a bit ilogical. Then if you use set_attach with the values of player:get_dir(), with the conversion from radiants to degrees... you will find that the XYZ axis from the player is different from the one of an attached entity. Example, the x of the player conresponds to the Y of the entity, which is a total absurdity.
This is what i wrote after having problem with the set_attach function... It seem to work in a different way than other function, particularly by being the only one to use degrees... (i'm not sure of that but it seems to). So what is wrong with this function, how to use it and then, how to improve it?
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest