Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - DilsonTB

#1
Hi everyone, I've been inactive for a loooong time, so now I'm back and i've spend a hard time stuying much as I could the 0.4 features and such as those news, last time I was on vcmp,it was on 0.3z (Tell you this, to prevent you telling me that is already a post that explains my questions, I already Googled, search on differents vcmp forums, and still nothing exactly as the right angle like in 0.3 was, so please, and happy to be back with 0.4 (It's like 5 vcmp versions together :O ;) looks amazing.)

Well to the point.

I've been trying to get the exactly vehicle.Angle or vehicle.EulerAngle, but even the first function give me 4 parameters, the second one gives me 3.

Tried to test =

player.Vehicle.EulerAngle.x
player.Vehicle.EulerAngle.y
player.Vehicle.EulerAngle.z

also:

player.Vehicle.Angle.x
player.Vehicle.Angle.y
player.Vehicle.Angle.z

the "z" is the most that goes close to the right angle, but still I can't find a right angle as 0.3z had.

I'm developing an RP server, so my idea is to save the pos, angle to database, and them, Load vehicles and "save the pos ingame" as "parking".

trying to save angle to database and them while loading (creating) vehicles from database, make the saved angle work, I tried:

stats[player.ID].Example = player.Vehicle.Angle;then on another cmd;
player.Vehicle.Angle = stats[player.ID].Example; (and works)
but if I try to set it like a Vector, float, manually, doesn't works, just crash my svr.
Thanks for paying attention and help.

Out of topic: Why the 0.4 developers changed this function to 3 o 4 parameters?, do they have another intention, like another use those x,y,z,w angles?