Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  

A teleport to respawn or some kind of teleporter?

Recommended Posts

Ok so, the problem is that sometimes i need to teleport from any place to the respawn point, or teleport to the place where i'm looking at, and do that on any map. I'v tried to make ACS scripts such as

script 222 (void) net
Thing_Spawn(1337+PlayerNumber(), "NewTeleport", 0, 222);
Teleport(222, 0, 0)

But no success. So is there any ACS script or something to teleport myself to where ever I look at (like the sm_tele @me @aim)? Or at least teleport my self to respawn point, without editing map entities? Or maybe some kind of "Teleporter weapon", that works like - you teleport where you shot at?

Share this post

Link to post

Take a look at ZPortal. It implements a teleport gun, and I think you can utilize the same principle via ACS. Also take advantage of the fact that the player who activated the script can be referenced via tag 0, you don't need to care about PlayerNumber(). To return the player to the player start, give him an inventory based on ArtiTeleport and make sure that the inventory activates automatically (you might need to make a custom DECORATE class for that). Or you can make the player to spawn a dummy map spot when he enters the map, and this dummy map spot will have a unique tag referenced by the teleport script.

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this