Cranes in SA-MP
#1

Can anyone tell me how can cranes be scripted? Functions, callbacks, anything...
http://imgur.com/GOyNay8
http://i.filmot.org/v2cLwOR.jpg
Reply
#2

He used cruise control to get to there. Then he uses NOS. There's nothing in the CT script that lets you control cranes.
Reply
#3

You can use the crane object, and then keep applying the vehicle's position, slowly gaining height accordingly. It's not really easy, but it's possible.

Since there is no ToggleVehicleControllable function how-ever: it may be a bit insufficient to keep applying the vehicle's position.
Reply
#4

The vehicle can't be frozen in mid-air. Best guess is there's an invisible platform it is residing on, but I'm not entirely sure how that's accomplished. If a solid object is attached beneath the vehicle will the vehicle actually sit on that object or still obey the laws of gravity?
Reply
#5

vehicles are automatically attached to these magnets
Quote:
Originally Posted by DobbysGamertag
Посмотреть сообщение
There's nothing in the CT script that lets you control cranes.
yep
Reply
#6

Use AttachObjectToObject();
Reply
#7

Quote:
Originally Posted by Vince
Посмотреть сообщение
The vehicle can't be frozen in mid-air. Best guess is there's an invisible platform it is residing on, but I'm not entirely sure how that's accomplished. If a solid object is attached beneath the vehicle will the vehicle actually sit on that object or still obey the laws of gravity?
Wrong. A vehicle can be frozen in mid-air, I've tried it myself just set the vehicle's Z position to +nr.
Reply
#8

Quote:
Originally Posted by bigboy81
Посмотреть сообщение
Use AttachObjectToObject();
A vehicle is not an object.

You could take a look at this: https://sampforum.blast.hk/showthread.php?tid=84485
It attaches vehicles to other vehicles, im not sure how you could attach vehicles to objects, but you might be able to do kinda the same.
Reply
#9

this cranes have a magnet
if you near the magnet, your vehicle is automatically attached to it and hang in air
this is not cheat nor scripted
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)