[Tutorial] How to Make Moving Objects
#1

Hello guys today i'm gonna teach you how to make Moving Objects.

First add new at the top of your Script.

pawn Код:
new gate;//This will be your gate
Now under OnGameModeInit add your gate

pawn Код:
gate = CreateObject(971,263.59960938,-1333.29980469,55.40000153,0.00000000,0.00000000,215.24975586);//for example
Now for the command

pawn Код:
if (strcmp("/opengate", cmdtext, true, 10) == 0)
    {
    MoveObject(gate,coordinates,Speed,rotation coordinates);//your coordinates when the gate is opened
    return 1;
    }
    if (strcmp("/closegate", cmdtext, true, 10) == 0)
    {
    MoveObject(gate,coordinates,Speed,rotation coordinates);//your coordinates when the gate is closed
    return 1;
    }
And your done.
Reply
#2

Do you know why no one is commenting ?
Reply
#3

its easy , but newbies need more explain to figure this out... ill make new one for it soon with more explanation
2/10 for the effort....
Reply
#4

its easy , but newbies need more explain to figure this out... ill make new one for it soon with more explanation
2/10 for the effort....
Reply
#5

Quote:
Originally Posted by xMCx
Посмотреть сообщение
its easy , but newbies need more explain to figure this out... ill make new one for it soon with more explanation
2/10 for the effort....
Excuse me but where do you see the effort ? He barely wrote some lines of code.
Reply
#6

Quote:
Originally Posted by Lexi'
Посмотреть сообщение
Excuse me but where do you see the effort ? He barely wrote some lines of code.
yup , sorry for the 2 posts it might be lag + maybe its his first work he should make more effort next time..
Reply
#7

Wikipedia explains it better, and you didn't even explain the params of the function, but, for the effort, REP-- for you
Reply
#8

I will make a video so that is easy and simple
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)