MadthatModsareDisabled Posted July 31, 2010 Share Posted July 31, 2010 Hello, I am wanting to rotate objects in Grand Theft Auto using the Script Hook. I already have the code to rotate left to right and vise versa. However I want to be able to rotate in a flip fashion (upside down). Currently I am using this for left/right rotation: void CustomFiberThread::RotateAnObject(){lastobj = objSpawned[listView - 1];//if(DoesObjectExist(lastobj))if(objectNum > 0){ f32 dir; eModel curObj = GetModelHash(carmod[carObjectX]); GetObjectHeading(lastobj, &dir); SetObjectHeading(lastobj, dir + navobjSpeed); sprintf_s(mes1,300,"Rotating Object %i, object: %s, speed: %i" ,objectNum+1, mod[ObjectX], charRateSpeed); PrintStringWithLiteralStringNow("STRING", mes1, 9500, 1);} else if (!DoesObjectExist(lastobj)) { PrintStringWithLiteralStringNow("STRING", "No spawned objects to view yet", 7500, 1); }} So how can this be accomplished to rotate upside down? Any help is appreciated. Also my trainer is here: http://www.gtagaming.com/downloads/gta-iv/script-mods/5835 Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now