Page 1 of 1

script

Posted: October 27th, 2006, 3:57 pm
by t3vY
hi i want to make a script(i am noob at scripting) that when i press f my platform ll move 2300 units forward and then same distance back....
can anyone please help me? :roll:

Posted: October 27th, 2006, 8:31 pm
by Nightmare
Heres a Tutorial I made ;)
http://codjumper.com/forums/viewtopic.php?t=2963

Dont foget to use the search button

Posted: October 28th, 2006, 1:36 pm
by t3vY
tnx m8! :)

Posted: October 28th, 2006, 4:10 pm
by t3vY
everything works great....platform moves on my command, but there is no white hand
can anyone help?

Posted: October 28th, 2006, 11:52 pm
by Nightmare
thats because if you want a white hand, you want to make the trigger a trigger/use instead of a trigger/multiple

Posted: October 29th, 2006, 10:48 am
by t3vY
thats because if you want a white hand, you want to make the trigger a trigger/use instead of a trigger/multiple
tny.... :D
and btw great tutorial :wink:

Posted: October 30th, 2006, 4:07 pm
by t3vY
i need one more thing.... this is my teleport file...

main()
{

entTransporter = getentarray("enter","targetname");
if(isdefined(entTransporter))
{
for(lp=0;lp<entTransporter.size;lp=lp+1)
entTransporter[lp] thread Transporter();
}


}


Transporter()
{
while(true)
{
self waittill("trigger",other);
entTarget = getent(self.target, "targetname");

wait(0.10);
other setorigin(entTarget.origin);
other setplayerangles(entTarget.angles);
printlnbold ("^4W^7el^9l ^4d^7on^9e ^4y^7o^9u ^4h^7av^9e ^4f^7inishe^9d ^4t^7h^9e ^4m^7a^9p^4!");
wait(0.10);
}
}


i want that only one person ll see this message:
printlnbold ("^4W^7el^9l ^4d^7on^9e ^4y^7o^9u ^4h^7av^9e ^4f^7inishe^9d ^4t^7h^9e ^4m^7a^9p^4!");
i tried "user printlnbold" but its not working...please help

Posted: October 30th, 2006, 6:27 pm
by Nightmare
the userinprint didnt work because you didnt state it in the trigger

self waittill("trigger",user);

Posted: October 30th, 2006, 8:20 pm
by t3vY
this is my .gsc now but its not working:


main()
{

entTransporter = getentarray("enter","targetname");
if(isdefined(entTransporter))
{
for(lp=0;lp<entTransporter.size;lp=lp+1)
entTransporter[lp] thread Transporter();
}


}


Transporter()
{
while(true)
{
self waittill("trigger",user);
entTarget = getent(self.target, "targetname");

wait(0.10);
other setorigin(entTarget.origin);
other setplayerangles(entTarget.angles);
userprintlnbold ("^4W^7el^9l ^4d^7on^9e ^4y^7o^9u ^4h^7av^9e ^4f^7inishe^9d ^4t^7h^9e ^4m^7a^9p^4!");
wait(0.10);
}
}

help?? :roll:

Posted: October 30th, 2006, 9:57 pm
by Drofder2004
t3vY wrote:this is my .gsc now but its not working:

Code: Select all

Transporter()
{
while(true)
{
self waittill("trigger",user);
entTarget = getent(self.target, "targetname");

wait(0.10);
other setorigin(entTarget.origin);
other setplayerangles(entTarget.angles);
userprintlnbold ("^4W^7el^9l ^4d^7on^9e ^4y^7o^9u ^4h^7av^9e ^4f^7inishe^9d ^4t^7h^9e ^4m^7a^9p^4!");
wait(0.10);
}
}
help?? :roll:

Code: Select all

Transporter()
{
while(true)
{
self waittill("trigger",user);
entTarget = getent(self.target, "targetname");

wait(0.10);
user setorigin(entTarget.origin);
user setplayerangles(entTarget.angles);
user iprintlnbold ("^4W^7el^9l ^4d^7on^9e ^4y^7o^9u ^4h^7av^9e ^4f^7inishe^9d ^4t^7h^9e ^4m^7a^9p^4!");
wait(0.10);
}
}

Posted: October 30th, 2006, 10:22 pm
by t3vY
Tnx Drofder & Nightmare :** :P