SA-MP Forums Archive
Streamer Help - AttachDynamicAreaToVehicle - 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: Streamer Help - AttachDynamicAreaToVehicle (/showthread.php?tid=457844)



Streamer Help - AttachDynamicAreaToVehicle - Grimrandomer - 13.08.2013

Hey all,

I want to attach a Dynamic area to a car, and want to use the streamers AttachDynamicAreaToVehicle.

But i need to attach it with an offset, so it sits 10 meters in-front of the car, so when it moves and rotates the Area is still offset 10M in-front of the car.

Does anyone have any ideas how to do this, as i have never used this function before?

Thanks,

Grim.


Re: Streamer Help - AttachDynamicAreaToVehicle - Red_Dragon. - 13.08.2013

Use this function
pawn Код:
native AttachDynamicAreaToVehicle(areaid, vehicleid);
As you can see, there isn't a parameter for an offset, so I'm not quite sure whether you can set it with an offset. As far as I know, you can use an object editor and attach the required area to the vehicle with the required offsets.


Re: Streamer Help - AttachDynamicAreaToVehicle - CEDZIOR - 08.03.2016

Only CreateDynamicCircle and CreateDynamicSphere, because console print message "*** Streamer Plugin: AttachDynamicAreaToVehicle: Only circles and spheres may be attached to vehicles"