DynamicObject - Force Create
#1

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.
Reply
#2

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)