Talk:SetElementAttachedOffsets

From Multi Theft Auto: Wiki
Revision as of 23:15, 23 May 2009 by Karloz (talk | contribs) (New page: Maybe it would be better that optional arguments were increments instead of new offsets So if you want to rotate an object around its Z axis you could do SetElementAttachedOffsets(theObje...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Maybe it would be better that optional arguments were increments instead of new offsets So if you want to rotate an object around its Z axis you could do

SetElementAttachedOffsets(theObject,0,0,0,0,0,10)

Maybe im wrong but actually to change the last value you must provide all previous If you dont provide them they will be set to default(=0) what would mess the offsets

where Zero values mean keep old value

Well not sure cos if you want to set an absolute value you would need to get old value and compute diff.

You could always use:

AttachElements(theObject, getElementAttachedTo(theObject), ....) to set absoulute values

Maybe some function float,float,float,float,float,float getElementAttachedOffsets(theObject)