PDA

View Full Version : Cranes in SA-MP


HeLiOn_PrImE
23/01/2015, 04:37 PM
Can anyone tell me how can cranes be scripted? Functions, callbacks, anything...
http://imgur.com/GOyNay8
http://i.filmot.org/v2cLwOR.jpg

DobbysGamertag
23/01/2015, 04:40 PM
He used cruise control to get to there. Then he uses NOS. There's nothing in the CT script that lets you control cranes.

Abagail
23/01/2015, 04:42 PM
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.

Vince
23/01/2015, 05:09 PM
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?

Raidensama
17/02/2015, 09:21 AM
vehicles are automatically attached to these magnets
There's nothing in the CT script that lets you control cranes.yep

bigboy81
17/02/2015, 09:47 AM
Use AttachObjectToObject();

Write
17/02/2015, 09:56 AM
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.

CalvinC
17/02/2015, 11:35 AM
Use AttachObjectToObject();

A vehicle is not an object.

You could take a look at this: http://forum.sa-mp.com/showthread.php?t=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.

Raidensama
21/02/2015, 07:35 AM
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