What is GATE ID
#1

Does anyone know what the best way of adding Gates etc... etc....
As far as I know you have to do CreateObject.
Any tips? A

And, what is the GATE ID?
Reply
#2

Right. Use CreateDynamicObject with streamer plugin. Take the gate's IDs from here. Use MoveObject function to move your gates.
Reply
#3

mmm, appreciated bro, I guess I can live with it.
I will reply if I get stuck somewhere.
Thank you.
Reply
#4

Well, I've got this error....
Quote:

warning 213: tag mismatch

For this:
PHP код:
CreateDynamicObject(2933,1207.5870,-1325.7070,13.3984,180.4690005.0); 
I am not kinda experienced with the Dynamic thingy nor with Objects.
Reply
#5

Sorry for the Triple post, but, I don't know what's wrong with the code in my previous post.
Could anyone explain me how to work with Dynamic objects... or is it just the same as CreateObject?
Reply
#6

PHP код:
CreateDynamicObject(modelidxyzrxryrz); 
=
PHP код:
new mygate;
public 
OnFilterScriptInit()
{
mygate CreateDynamicObject(2933,1207.5870,-1325.7070,13.3984,180.469000);
return 
1;
}

CMD:movegate(playerid,params[])
{
MoveDynamicObject(mygate,X,Y,Z,Speed,RX,RY,RZ);
return 
1;

Reply
#7

I don't know why but I don't have OnFilterScriptInit.... Did you create that?
Where should I create that callback
Reply
#8

Quote:
Originally Posted by saffierr
Посмотреть сообщение
I don't know why but I don't have OnFilterScriptInit.... Did you create that?
Where should I create that callback
you can also put the CreateDynamicObject after:
public OnGameModeInit()
{
Reply
#9

I don't know which co-ordinates I have to fill in in RX/RY/RZ...
Reply
#10

Quote:
Originally Posted by saffierr
Посмотреть сообщение
I don't know which co-ordinates I have to fill in in RX/RY/RZ...
RX RY RZ mean the rotation you can put the rotation of your gate which you made it:
CreateDynamicObject(2933,1207.5870,-1325.7070,13.3984,180.4690, 0, 0);
PHP код:
RX180.4690 RY0 RZ
Код:
MoveDynamicObject(mygate,X,Y,Z,Speed,180.4690,0,0);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)