How do I make a teleporter?
Hi,
In my game I need some teleporters:
1. they should be aktivated by a GUI.
2. you should be able to chose the destination teleporter with that GUI.
Example:
You chose Teleporter 5 and get teleported there. There you deside to ge to Teleporter 23 ...
Is it possible to make something like that?
When yes what should I edit?
Thanks BigJJ
In my game I need some teleporters:
1. they should be aktivated by a GUI.
2. you should be able to chose the destination teleporter with that GUI.
Example:
You chose Teleporter 5 and get teleported there. There you deside to ge to Teleporter 23 ...
Is it possible to make something like that?
When yes what should I edit?
Thanks BigJJ
Re: How do I make a teleporter?
Dear BigJJ,
your question is a good one!
Please give me one or two more days to come up with a proper answer - I'll at least augment one of the existing example maps with a functioning teleporter that can serve as an example, then write down all essential steps.
your question is a good one!
Please give me one or two more days to come up with a proper answer - I'll at least augment one of the existing example maps with a functioning teleporter that can serve as an example, then write down all essential steps.
Best regards,
Carsten
Carsten
Re: How do I make a teleporter?
Just a quick update: I'm working on this!
It's not yet ready though, and I'll have little time over the weekend, but I'll have a complete example map and improved documentation for you in the course of the next week.
What slowed me down is the fact that I found a series of minor but subtle problems along that way, and I wanted to take the time to fix them all, see http://trac.cafu.de/timeline for details.
It's not yet ready though, and I'll have little time over the weekend, but I'll have a complete example map and improved documentation for you in the course of the next week.
What slowed me down is the fact that I found a series of minor but subtle problems along that way, and I wanted to take the time to fix them all, see http://trac.cafu.de/timeline for details.
Best regards,
Carsten
Carsten
Re: How do I make a teleporter?
Dear BigJJ,
I finally have a reply for you:
A new CaWE tutorial: Creating Teleporter Stations
It's not yet polished and there is not much eye candy involved, but it's a nice and simple start for more sophisticated teleportation results.
Please note that you must get the latest source code for this to work: At least r68 is required. You can download it as usual at http://www.cafu.de/downloads or get it from SVN head.
The latest source code not only contains the required basic enhancements for the teleporters to work, it also includes all example files mentioned in the tutorial.
I'll update the binary Worlds.zip file and the binary development release with a ready-made, fully working example later, but you don't need those if you work with the latest source code anyways.
I finally have a reply for you:
A new CaWE tutorial: Creating Teleporter Stations
It's not yet polished and there is not much eye candy involved, but it's a nice and simple start for more sophisticated teleportation results.
Please note that you must get the latest source code for this to work: At least r68 is required. You can download it as usual at http://www.cafu.de/downloads or get it from SVN head.
The latest source code not only contains the required basic enhancements for the teleporters to work, it also includes all example files mentioned in the tutorial.
I'll update the binary Worlds.zip file and the binary development release with a ready-made, fully working example later, but you don't need those if you work with the latest source code anyways.
Best regards,
Carsten
Carsten
Re: How do I make a teleporter?
Hi,
i thnink, there is something wrong with the teleporter code,
if i make a map with a teleporter and a door, the teleporter dont work.
Here are the maps:
with door and without door
i thnink, there is something wrong with the teleporter code,
if i make a map with a teleporter and a door, the teleporter dont work.
Here are the maps:
with door and without door
Re: How do I make a teleporter?
Hi BigJJ,
are there any error messages in the in-game console?bigjj13 wrote:if i make a map with a teleporter and a door, the teleporter dont work.
Best regards,
Carsten
Carsten
Re: How do I make a teleporter?
Hi
no, there are no error mesages in the ingame console.
Thanks
no, there are no error mesages in the ingame console.
Thanks
Re: How do I make a teleporter?
Ok, I just had a look into your maps.
I think the problem is because the info_generic entities in the map with the door are named like "info_generic_001" when it should be "info_generic_1" (without the leading zeros), because this is what function teleport in the map script expects.
You can fix the problem either by renaming the info_generic entities in the map, or by fixing the map script to look for three-digit named info_generic entities.
I think the problem is because the info_generic entities in the map with the door are named like "info_generic_001" when it should be "info_generic_1" (without the leading zeros), because this is what function teleport in the map script expects.
You can fix the problem either by renaming the info_generic entities in the map, or by fixing the map script to look for three-digit named info_generic entities.
Best regards,
Carsten
Carsten
Who is online
Users browsing this forum: No registered users and 10 guests