Skip to content

Instantly share code, notes, and snippets.

@m0k1
Created January 18, 2015 04:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m0k1/15a380962c71e6de0e91 to your computer and use it in GitHub Desktop.
Save m0k1/15a380962c71e6de0e91 to your computer and use it in GitHub Desktop.
Useful object streamer that streams objects realistically (the bigger the object, the farther it gets streamed from)
#include <a_samp>
#include <streamer> //by Incognito http://forum.sa-mp.com/showthread.php?t=102865
#include <modelsizes> //by Y_Less http://forum.sa-mp.com/showthread.php?t=407909
#define STREAM_CONSTANT 180
stock StreamObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
return CreateDynamicObject(modelid, x, y, z, rx, ry, rz,-1, -1, -1, STREAM_CONSTANT + GetColSphereRadius(modelid));
}
@Crayder
Copy link

Crayder commented Apr 24, 2015

I honestly never thought of this XD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment