eLEos
20th July 2012, 13:52
CoD2 Radiant part
1. Click right mouse on 2d view and click trigger>use_touch
2. Press N and type key:targetname
value:enter
also type key:target
value: (A name of the place you will go. Example:room)
3. Click right mouse on 2d view and click script>origin
Put it at the place you want to be teleported. (A bit higher from the ground)
4. Press N and type key:targetname
value: (The name of the place you choosed to type before)
Now a red line is between them. If there isn't red line you have made a mistake somewhere.
Scripting part
1. Open a notepad and paste this:
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");
other setorigin(entTarget.origin);
other setplayerangles(entTarget.angles);
//iprintlnbold ("You have been teleported !!!");
wait(0.10);
}
}
Save it in your maps/mp as teleport.gsc and change the Save as box to All files
2. Open your mp_mapname.gsc file and add this line:
maps\mp\teleport::main();
Finished.
Now compile and test. :)
1. Click right mouse on 2d view and click trigger>use_touch
2. Press N and type key:targetname
value:enter
also type key:target
value: (A name of the place you will go. Example:room)
3. Click right mouse on 2d view and click script>origin
Put it at the place you want to be teleported. (A bit higher from the ground)
4. Press N and type key:targetname
value: (The name of the place you choosed to type before)
Now a red line is between them. If there isn't red line you have made a mistake somewhere.
Scripting part
1. Open a notepad and paste this:
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");
other setorigin(entTarget.origin);
other setplayerangles(entTarget.angles);
//iprintlnbold ("You have been teleported !!!");
wait(0.10);
}
}
Save it in your maps/mp as teleport.gsc and change the Save as box to All files
2. Open your mp_mapname.gsc file and add this line:
maps\mp\teleport::main();
Finished.
Now compile and test. :)