Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: PsyChO_KiLLeR on Mar 02, 2015, 08:19 AM

Title: Rotate Object
Post by: PsyChO_KiLLeR on Mar 02, 2015, 08:19 AM
Description: Well I am facing problem i add objects on my server but there angel/rotation are not change how to change their angel/rotation

ScreenShot:(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi59.tinypic.com%2F29o0c5j.png&hash=e8662caadd5139223af510f227bff38c56752952)




Title: Re: Rotate Object
Post by: EK.IceFlake on Mar 02, 2015, 11:56 AM
CreateObject(something).RotateToEuler(angle[int], 0);
Hope this helps
Title: Re: Rotate Object
Post by: Sebastian on Mar 02, 2015, 12:01 PM
Quote from: NE.CrystalBlue on Mar 02, 2015, 11:56 AMCreateObject(something).RotateToEuler(angle[int], 0);
Hope this helps

Nope, it doesn't help that much.
What's with the angle[int] ? ...

The function is like this, Psycho_Killer:
object.RotateToEuler( Vector( x, y, z ), time );
object = instance
x,y,z = rotation
time = the time needed to rotate it. ( use 0 if you want it instantly )
Title: Re: Rotate Object
Post by: PsyChO_KiLLeR on Mar 02, 2015, 12:11 PM
is their any key to rotate? and where i have to put this on scriptload or onserverstart?
Title: Re: Rotate Object
Post by: Sebastian on Mar 02, 2015, 12:37 PM
Quote from: PsyChO_KiLLeR on Mar 02, 2015, 12:11 PMis their any key to rotate? and where i have to put this on scriptload or onserverstart?

There is no key to rotate an object... only if you script that.
Here is an example of how should look a line for creating an object:
CreateObject( model ID, world ID, Vector( x, y, z ), alpha ).RotateToEuler( Vector( x, y, z ), time );
Title: Re: Rotate Object
Post by: MacTavish on Mar 02, 2015, 01:14 PM
Off: @Psycho_Killer changing nick doesnt help you to make script, you are using an leaked script and that is the f***est way learn scripting and afaik scripters wont provide support for Leaked script
Title: Re: Rotate Object
Post by: PsyChO_KiLLeR on Mar 02, 2015, 01:24 PM
its not leaked scripts that u use and dont talk in my problem and again i am saying its not leaked script
Title: Re: Rotate Object
Post by: MacTavish on Mar 02, 2015, 01:31 PM
Quote from: PsyChO_KiLLeR on Mar 02, 2015, 01:24 PMits not leaked scripts that u use and dont talk in my problem and again i am saying its not leaked script

Oh please shut your mouth that is Evolution-Dm script made by Ali_vcmp
Title: Re: Rotate Object
Post by: PsyChO_KiLLeR on Mar 02, 2015, 01:35 PM
lol it is he give me i use just spree system of his script
Title: Re: Rotate Object
Post by: ali_vcmp on Mar 02, 2015, 01:36 PM
Beztone Is RIght I Gave U Tomorrow AM I Right Squirrel Master + Phycho killer blah blah blah?
Title: Re: Rotate Object
Post by: ali_vcmp on Mar 02, 2015, 01:37 PM
Then This Msg [Dod-error]?
Title: Re: Rotate Object
Post by: PsyChO_KiLLeR on Mar 02, 2015, 01:46 PM
yeah and i dont care i change my nick
Title: Re: Rotate Object
Post by: EK.IceFlake on Mar 03, 2015, 11:04 AM
Quote from: sseebbyy on Mar 02, 2015, 12:01 PM
Quote from: NE.CrystalBlue on Mar 02, 2015, 11:56 AMCreateObject(something).RotateToEuler(angle[int], 0);
Hope this helps

Nope, it doesn't help that much.
What's with the angle[int] ? ...

The function is like this, Psycho_Killer:
object.RotateToEuler( Vector( x, y, z ), time );
object = instance
x,y,z = rotation
time = the time needed to rotate it. ( use 0 if you want it instantly )
Quote from: sseebbyy on Mar 02, 2015, 12:01 PM
Quote from: NE.CrystalBlue on Mar 02, 2015, 11:56 AMCreateObject(something).RotateToEuler(angle[int], 0);
Hope this helps

Nope, it doesn't help that much.
What's with the angle[int] ? ...

The function is like this, Psycho_Killer:
object.RotateToEuler( Vector( x, y, z ), time );
object = instance
x,y,z = rotation
time = the time needed to rotate it. ( use 0 if you want it instantly )
:P Sorry I forgot about that lol
Title: Re: Rotate Object
Post by: Honey on Mar 04, 2015, 01:02 PM
@ Ali and Psycho What's that noob-talk going on between you guys? Topics aren't made to chat, Do this via PM
Title: Re: Rotate Object
Post by: PsyChO_KiLLeR on Mar 04, 2015, 01:13 PM
ok honey as u say