LSPD Ramp slow open help
#1

Hello i use Raven's gamemode and my LSPD ramps is created in simple way with destroy object.
I don't wanna that ramps with destroy object i want the ramp open slowly..
I trying to make custom system to opening ramp but doesnt work..

Any idea or code ?

Something to write:I need make also rotation moving but don't work
i use MoveDynamicObject
Reply
#2

c0d3 pl5
Reply
#3

Simple:

Quote:

pdgate2 = CreateDynamicObject(968,1544.700317,-1630.735717,13.096980,-1.000000,-91.000000,269.972869); Ramp close

Quote:

public GateClose5()
{
DestroyDynamicObject( pdgate3 );
pdgate2 = CreateDynamicObject(968,1544.700317,-1630.735717,13.096980,-1.000000,-91.000000,269.972869);
lspdg2 = 0;
return 1;
}

Quote:

else if(IsPlayerInRangeOfPoint(playerid, 15,1544.700317,-1630.735717,13.096980))
{
if(lspdg2 == 1) { SCM(playerid, COLOR_GREY, "** Rampa je vec otvorena"); return 1; }
DestroyDynamicObject( pdgate2 );
pdgate3 = CreateDynamicObject(968,1544.700317,-1630.735717,12.924660,0.000000,0.000000,270.972869 );
SetTimer("GateClose5", 6000, 0);
SCM(playerid, COLOR_BLUE,"Rampa je otvorena i bice zatvorena za 6 sekundi.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima svoj daljinski i otvara rampu.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,CO LOR_CHAT5);
lspdg2 = 1;
}

Reply
#4

pawn Код:
MoveDynamicObject(args)
Reply
#5

what you mean this args
Reply
#6

The arguments you need to pass like positions etc
Reply
#7

aha, i use this way
MoveDynamicObject(pdgate1,1599.053344,-1638.123168,14.122960, 0.1-speed);
Reply
#8

yeah
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)