DynamicObject - Force Create - 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: DynamicObject - Force Create (
/showthread.php?tid=477192)
DynamicObject - Force Create -
Grimrandomer - 22.11.2013
Im using CreateDynamicObject and AttachDynamicObjectToVehicle to attach an Orb to my vehicle, but the orb does not attach to the vehicle, or at least, does not appear visible until the car starts moving.
pawn Код:
indVehicles[vehicleid][orbObj][index] = CreateDynamicObject(modelORB, 10.0, 10.0, -100.0, 0, 0, 0);
AttachDynamicObjectToVehicle(indVehicles[vehicleid][orbObj][index], vehicleid, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
Any idea's?
Thanks.
Re: DynamicObject - Force Create -
Pottus - 22.11.2013
Update the streamer for all players in range when attaching of course.
Note: You will probably only need one the last two functions.
pawn Код:
native Streamer_ProcessActiveItems();
native Streamer_ToggleIdleUpdate(playerid, toggle);
native Streamer_ToggleItemUpdate(playerid, type, toggle);
native Streamer_Update(playerid);
native Streamer_UpdateEx(playerid, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1);