Cranes in SA-MP - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Cranes in SA-MP (
/showthread.php?tid=559493)
Cranes in SA-MP -
HeLiOn_PrImE - 23.01.2015
Can anyone tell me how can cranes be scripted? Functions, callbacks, anything...
http://imgur.com/GOyNay8
http://i.filmot.org/v2cLwOR.jpg
Re: Cranes in SA-MP -
DobbysGamertag - 23.01.2015
He used cruise control to get to there. Then he uses NOS. There's nothing in the CT script that lets you control cranes.
Re: Cranes in SA-MP -
Abagail - 23.01.2015
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.
Re: Cranes in SA-MP -
Vince - 23.01.2015
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?
Re: Cranes in SA-MP -
Raidensama - 17.02.2015
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
Re: Cranes in SA-MP -
bigboy81 - 17.02.2015
Use AttachObjectToObject();
Re: Cranes in SA-MP -
Write - 17.02.2015
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.
Re: Cranes in SA-MP -
CalvinC - 17.02.2015
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.
Re: Cranes in SA-MP -
Raidensama - 21.02.2015
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