#1 22-12-2009 21:24

knightindustries3000
Registered: 22-12-2009
Posts: 2

help?

How can i make things rotate in GTA SA ?:P smile can anyone help me to make a rotate object ?:P

Offline

#2 23-12-2009 18:09

Den_spb
From: Ленинград
Registered: 23-11-2008
Posts: 941
Website

Re: help?

You can create object and change angle of it anytime:

{$CLEO}
0A95: enable_thread_saving
model.Load(#model_of_object)
repeat
    wait 0
until model.Available(#model_of_object)
0107: 0@ = create_object #model_of_object at 1833.36 -1995.45 12.5 
model.Destroy(#model_of_object)
1@ = 0.0
while true
    wait 10
    1@ += 0.1
    if
        1@ == 360.0
    then
        1@ = 0.0
    end
    0177: set_object 0@ Z_angle_to 1@
end

This object will rotate around vertical axis with speed 10 degrees per second.

Last edited by Den_spb (23-12-2009 18:09)

Offline

#3 23-12-2009 19:12

Alien
Registered: 12-10-2008
Posts: 564

Re: help?

more preferable to make so:
[c]while true
    wait 250
    05A1: set_object 0@ rotation_velocity_about_an_axis 0 0 0.1 through_center_of_body
end[/c]

Offline

Board footer

Powered by FluxBB