Results 1 to 6 of 6

Thread: How to make a teleport by eLEos

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    ... connecting eLEos's Avatar
    Join Date
    Jul 2012
    Posts
    8
    Thanks
    4
    Thanked 8 Times in 6 Posts

    Wink How to make a teleport by eLEos

    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:

    Code:
    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:
    Code:
    maps\mp\teleport::main();
    Finished.
    Now compile and test.
    Last edited by eLEos; 20th July 2012 at 13:55. Reason: mistake

  2. The Following 2 Users Say Thank You to eLEos For This Useful Post:

    kung foo man (20th July 2012),thOuMta (21st November 2015)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •