V1.3


----------------Easy Teleporters by Sparky----------------

If you use this code in your map please give credit to me. =)
Thanks
 
Note:The file "NewTeleporter_ver1_3.vl2" must be included with your map for the teleporters to operate

How to use:

	Put the file "NewTeleporter_ver1_3.vl2" into your base folder and add the following line to the very end of your ".mis" file :

exec("scripts/newteleporter.cs");


	While mapping create a simgroup called "teleporters" in your mission simgroup. Now to create the teleporter just add a nexus base (you can use any shape but they may not work properly) to the "teleporters" simgroup and give it a name for example : 

This teleporter is called "team1tele"

Set the "team" value to the team that will use it, a value of zero will make the teleporter team nuetral
allowing anyone to transport.

Add a dynamic field called "targetbase" and set it's value to the name of another teleporter
notice how the target base of each points to the other?
now you can add as many pairs of teleporters in this fashion that you wish!!!
you could have two teleporters point to one teleporter as well.



Example of two teleporters that are linked;



		new StaticShape(Team1tele) {
			position = "41.8196 843.107 275.666";
			rotation = "0 0 -1 1.14602";
			scale = "1 1 1";
			nameTag = "Teleporter";
			dataBlock = "NexusBase";
			lockCount = "0";
			logoscale = "0.12 0.12 0.12";
           		waypoint = "Base Teleporter";
           		message = "Teleporting to vehicle bay";
			homingCount = "0";
				team = "1";
				Target = "-1";
				targetbase = "vehiclebaytele1";
		};

		new StaticShape(vehiclebaytele1) {
			position = "-78.8043 -70.7391 315.815";
			rotation = "1 0 0 0";
			scale = "1 1 1";
			nameTag = "Vehicle Bay Teleporter";
			dataBlock = "NexusBase";
			lockCount = "0";
			homingCount = "0";
				team = "1";
				Target = "-1";
				targetbase = "team1tele";
		};




optional fields:

If you add the field "waypoint" and give it a value as in the example, a waypoint will be added with the text specified.

If you add the field "message" and give it a value as in the example, a message will be sent to the player being teleported.

If you add the field "logoscale" and give it a value as in the example, a spinning team logo at the scale specified will be displayed over the teleporter.

remember to delete the file "NewTeleporter.cs.dso" when updating this script.

Thanks go out to TseTse for help with testing and special effects.
 