CreateObject -
Tisca - 12.06.2009
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.
Re: CreateObject -
ziomal396 - 12.06.2009
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)
Re: CreateObject -
MrPanz - 12.06.2009
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)
Re: CreateObject -
Correlli - 12.06.2009
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.
Re: CreateObject -
Tisca - 12.06.2009
I dont get it. It works now, but my gate is like... laying on the ground instead of standing up.
Re: CreateObject -
Correlli - 13.06.2009
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.
Re: CreateObject -
HuRRiCaNe - 13.06.2009
the last 0ґs are for weapons