CreateObject
#1

Hello guys.

I dont get this, really..

AddPlayerClass(0,829.5439,-1439.6895,13.4746,89.1920,0,0,0,0,0,0); // FBIgate

This should be my fence.

So it should be like:

CreateObject(0,829.5439,-1439.6895,13.4746,89.1920,0,0,0,0,0,0); // FBIgate

And then 969 as my object, so it would be like this

CreateObject(969,829.5439,-1439.6895,13.4746,89.1920,0,0,0,0,0,0); // FBIgate

But why does everyone get the right objects in, without all of those 0's in the end?

Regards.
Reply
#2

Should be as follows:

CreateObject(969,829.5439,-1439.6895,13.4746,89.1920,0,0); // FBIgate

(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ)
Reply
#3

Well, Why the 0,0,0,0,0's at the end? It should be like this :

CreateObject(969,829.5439,-1439.6895,13.4746,89.1920); // FBIgate


and to move it it would be MoveObject(etc etc)
Reply
#4

It should be like this:
pawn Код:
CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ);
CreateObject(969, 829.5439, -1439.6895, 13.4746, rX, rY, rZ);
modelid The Model ID you want to use.
Float:X The X coordinate.
Float:Y The Y coordinate.
Float:Z The Z coordinate.
Float:rX The X rotation.
Float:rY The Y rotation.
Float:rZ the Z rotation.

Returns The object id of the newly created object.
Reply
#5

I dont get it. It works now, but my gate is like... laying on the ground instead of standing up.
Reply
#6

Quote:
Originally Posted by Tisca
I dont get it. It works now, but my gate is like... laying on the ground instead of standing up.
Watch what rotation you are setting.
CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ);
modelid The Model ID you want to use.
Float:X The X coordinate.
Float:Y The Y coordinate.
Float:Z The Z coordinate.
Float:rX The X rotation.
Float:rY The Y rotation.
Float:rZ the Z rotation.
Reply
#7

the last 0ґs are for weapons
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)