Posts: 370
Threads: 52
Joined: Aug 2010
Reputation:
0
Lol, Read the SetObjectRot Function...
SetObjectRot(Object,X,Y,Z);
Posts: 380
Threads: 11
Joined: Feb 2010
Reputation:
0
Without looking at the rest of your script, its difficult for me to understand why you are using PVars for a function that is dealing with vehicle id's and object id's.
You set PVars with what I assume are rotation values
You create an object
You attach the object to a vehicle, which includes rotation values of 0, 0, 0
You set the rotation of the attached object with the values of the previously defined PVars
Why don't you just put the rotation values in the attach object command?
also, try 0.0, 0.0, 0.0 instead of 0, 0, 0 ( worth a try, sometimes it matters )
[edit] Considering object rotation is included in the Attach command, it is quite possible that you simply can't set the rotation of an attached object. Someone who is more familiar with 0.3c may be able to confirm this
Posts: 380
Threads: 11
Joined: Feb 2010
Reputation:
0
you know rotation is in degrees? and 360 degrees is the same as zero?
your rotation values are 2680.8572, -1330.0626, 42.8088?