[Map] Automatic Army Barrier by Me

Started by dEaN, Jun 25, 2015, 01:49 PM

Previous topic - Next topic

dEaN



Go Army Base  and hold O button!
function onScriptLoad()
{
up <- BindKey(true,0x104F ,0,0); //presss ( O ) to open
down <- BindKey(true,0x205A,0,0);
updown <- false;
HideMapObject( 379, -1721.86,-293.002, 15.1086 ); // palm
stopup <- CreateObject(302,1,Vector(-1717.91, -293.763, 15.1183),255);
}

function onKeyDown( player, bindid )
{
if(bindid==up)
{
if(updown==false) UD(player,stopup.ID,"updown");
}
}
function onKeyUp( player, bindid )
{
 if(bindid==up)
{
if(updown==true) UD(player,stopup.ID,"close");
        }
}
function UD(player,gate, status)
{
local obj=FindObject(gate);
if(obj)
{
if(status=="updown")
{
obj.RotateToEuler(Vector(0, 0, 0 ),2500);
updown=true;
}
else if(status=="close")
{
obj.RotateToEuler(Vector(-1.6, 0, 0),2500);
updown=false;
}
}
else MessagePlayer("Object could not be found.",player);
}
I think first impressions are important when i pick up a Main.nut script and I'm sticking to the script, I'm putting that organic feeling back in the game.
-Since 2012-

EK.IceFlake

Why not use a checkpoint or pickup there?

Sebastian

Quote from: NE.CrystalBlue on Jun 25, 2015, 02:54 PMWhy not use a checkpoint or pickup there?

Maybe this is the way he likes the most. :P

dEaN

#3
Quote from: sseebbyy on Jun 25, 2015, 04:04 PM
Quote from: NE.CrystalBlue on Jun 25, 2015, 02:54 PMWhy not use a checkpoint or pickup there?

Maybe this is the way he likes the most. :P
it is bad you want say!
I think first impressions are important when i pick up a Main.nut script and I'm sticking to the script, I'm putting that organic feeling back in the game.
-Since 2012-

Murdock

Can you add more arrows to the picture? I can't find the barrier

Skirmant


dEaN

Quote from: Murdock on Jun 25, 2015, 08:51 PMCan you add more arrows to the picture? I can't find the barrier
you blind!
I think first impressions are important when i pick up a Main.nut script and I'm sticking to the script, I'm putting that organic feeling back in the game.
-Since 2012-

dEaN

I think first impressions are important when i pick up a Main.nut script and I'm sticking to the script, I'm putting that organic feeling back in the game.
-Since 2012-

EK.IceFlake


.

.

dEaN

Quote from: S.L.C on Jun 26, 2015, 12:12 PM
Quote from: [NYB]fast on Jun 26, 2015, 05:33 AM
Quote from: Murdock on Jun 25, 2015, 08:51 PMCan you add more arrows to the picture? I can't find the barrier
you blind!

you stupid!
yes really i am stupid! but you are more fool!
I think first impressions are important when i pick up a Main.nut script and I'm sticking to the script, I'm putting that organic feeling back in the game.
-Since 2012-

Sebastian

Pf @[NYB]fast , you couldn't understand a sarcastic joke.

DeViL_JiN


dEaN

I think first impressions are important when i pick up a Main.nut script and I'm sticking to the script, I'm putting that organic feeling back in the game.
-Since 2012-