Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 9 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Tutorials

»
CoDUO Mapping
ratings:
Awful Rating
Poor Rating
Average Rating
Good Rating
Excellent Rating
Teleporting players
Versions: You must be logged in to view history.
How to make a player teleport.
In the editor, go to your departure point, draw out a decent size brush and texture it trigger, right click in 2d view, go down and make it trigger_multiple.
with the trigger still selected press n and enter these values
Key = target Value = gohere
Key = targetname Value = enter
Press n again to close the entity box
(Thats it for the trigger, press esc.)

Navigate your way in the editor to where you want to be teleported to.
Right click in the 2d view and create a script_origin (a red cube should appear)
With that still selected, press n and enter these values
Key = targetname Value = gohere
Press n again to close the entity box
You can rotate the red cube until the arrow faces the direction you wish to be facing when teleported.

Press esc.

If you have things correct you should now see a red line connecting trigger and red cube.

(I think thats it for the mapping bit)

Compile,

Make a .gsc containing this script (just call it teleport)
.....................................................................................

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);
wait(0.10);
}
}
.......................................................................................

Dont forget to call up this .gsc in your main .gsc for your map

Hope that works for you.

Greets dadofazz (who found it via azz.. who found it via unknown sources)

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»