gate would not open
#1

Hi, my gate cant open when im near it? but i want it to turn by using rotation not by using the non rotation? so how can i make my gate going rotate?
here's my script
http://pastebin.com/zBw8FBBv
Reply
#2

put the script between [pawn] tag
Reply
#3

Huh what you mean?
Reply
#4

i think this can help you
https://sampforum.blast.hk/showthread.php?tid=75493

EDIT: you can use Incognito's streamer to make an area ... and when player enters the area (of the gate).
no loops no nothing... much better in my opinion
Incognito's Streamer
Reply
#5

Hmm so is it i just edit the MoveObject To native RotateObject? in my script?
edit i think so too
Reply
#6

Quote:
Originally Posted by LegendNissanGTR
Посмотреть сообщение
Hmm so is it i just edit the MoveObject To native RotateObject? in my script?
Yes, but look at my previous post... i edited it...i suggest use Areas...
Reply
#7

Looks kinda hard to use is there anything more simple to use?
Reply
#8

it is not hard at all.... hm its suppose to work i think... try this and tell me...
pawn Код:
new AOG;
AOG=CreateDynamicCircle(1794.95019531,701.68750000,15.17343998,20,0,0);//
//AOG...put it if its gm so OnGameModeInit() if FS OnFilterScriptInit()
//i suppose its the center of the place where you get close to and its opens...
forward AutoGate();
public OnPlayerEnterDynamicArea(playerid, areaid)
{
    if(areaid==AOG)
    {
        RotateObject(gate, 0, 270, 440, 3);
        SetTimer("AutoGate",5000,false);
    }
    return 1;
}
public AutoGate()
{
    RotateObject(gate, 0,270,350, 3);
    return 1;
}
btw its first time i'm using RotateObject i found this include about a hour ago... never tested it... but i think it'll work
Reply
#9

It didnt work i can show you on my server that it dosent work server ip is 121.7.214.53:5800 its at lv the toll
here's the script i made when you ask me to use it
http://pastebin.com/mvhZ9kVF
Reply
#10

how about you fix the indents? ;]
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)