Icognito's Streamer [Rep]
#1

I have only recently started using Icognito's Streamer for objects.

I'm not the best with plugins, and parameters, so i have a few questions i hope will be simple for you to answer.

- Objects load when i'm fairly close to them, and all i have on my CreateDynamicObject:
Код:
	CreateDynamicObject(5,-698.97000000,1278.21000000,0.51000000,0.00000000,0.00000000,262.86000000); //
- I used convertFFS for the code, from a CreateObject.

- Now, i looked at Icongito's thread, and this is the createdynamicobject native:

Код:
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 200.0);
- I sort of understand it, i have everything which is bold, but not the rest.

What would happen, if i were to change it to this: (My CreateDynamicObject, not the native!)

Код:
CreateDynamicObject(5,-698.97000000,1278.21000000,0.51000000,0.00000000,0.00000000,262.86000000, -1, -1, -1, 500.0);
I want to ignore EVERYTHING to do wit hthe playerid, worldid, interiorid. I'm not sure how but i'm taking a guess, is it -1 to IGNORE it? As i want to increase the distance only.


Thanks.
Rep will be given.
Reply
#2

If you would like to ignore playerid, world ect, you can do it like this.
pawn Код:
CreateDynamicObject(5,-698.97000000,1278.21000000,0.51000000,0.00000000,0.00000000,262.86000000, .distance = 400.0);
This can be done for any parameter. Example;
pawn Код:
CreateDynamicObject(5,-698.97000000,1278.21000000,0.51000000,0.00000000,0.00000000,262.86000000, .playerid = 5);
Reply
#3

Quote:
Originally Posted by Psymetrix
Посмотреть сообщение
If you would like to ignore playerid, world ect, you can do it like this.
pawn Код:
CreateDynamicObject(5,-698.97000000,1278.21000000,0.51000000,0.00000000,0.00000000,262.86000000, .distance = 400.0);
This can be done for any parameter. Example;
pawn Код:
CreateDynamicObject(5,-698.97000000,1278.21000000,0.51000000,0.00000000,0.00000000,262.86000000, .playerid = 5);
Thank you very much.

Repped, and i will test this ASAP. .
Reply
#4

Yes, the native is
pawn Код:
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 200.0);
So

Код:
 model id = the word says is the id of the object

Float x,y,z are the positions of the object

rx,ry,rz are the rotation of the object

worldid = -1 is the default world id used, it is optional if you want to spawn that object in another virtual world shange the value otherwise skip the parameter.

interior = -1 same as worldid but in this case is related to an interior not virtural world.

playerid = -1 it is specified for the player who will see the object in this case who is around that object. if you change that to another value for exemple 1 the player who has ID 1 will see the object.

distance = 200.0 by default it means how far away you can see the object. Ingreasing the value you'll have less performance.
Just do an example. You're at Alhambra Disco the value still to 200.0 the object will be seen to 200 units away. if you change to 500.0 you can go more far away and you can still seeing the object. But as i said you'll has less performance, it is not useful if you has 100 players around that point.
Edit: damn writing so much other people already replied :S

Edit2: So you can skip those values it can be CreateDynamicObject(modelid, Float, Float:y, Float:z, Float:rx, Float:ry, Float:rz, Float:distance = 200.0); <- you can skip worldid = -1, interiorid = -1, playerid = -1 paramters

edit3: For any question about it PM me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)