About create Dynamic Object Ex !?
#2

Quote:
Originally Posted by LARC
View Post
huh? Use streamer then then add the following in your script.



pawn Code:
stock CreateDynamicObjectEx(modelid, Float: x, Float: y, Float: z, Float: rx, Float: ry, Float: rz, worldid = -1, interiorid = -1, playerid = -1, Float: streamdistance = 200.0)
{
    new objectid = CreateDynamicObject(modelid, x, y, z, rx, ry, rz, worldid, interiorid, playerid, streamdistance);
    Streamer_SetFloatData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_DRAW_DISTANCE, 300.0);
    return objectid;
}
You dont have to use stock. Use a normal function. Stocks are used on such functions which you may or may not call. If you are using the function actually and is called each time, you dont have to use stock.


PS, why do you want to change CreateDynamicObjectEx to CreateDynamicObject anyway? They both functions the same, its only that CreateDynamicObjectEx has a few extra parameters which already have default values. CreateDynamicObjectEx is just extended version of CreateDynamicObject. (Ex means Extended function. Its not a keyword but its generally practiced this way.)
Reply


Messages In This Thread
About create Dynamic Object Ex !? - by baovevieta - 21.07.2019, 12:05
Re: About create Dynamic Object Ex !? - by GTLS - 21.07.2019, 14:52

Forum Jump:


Users browsing this thread: 1 Guest(s)