Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Teleport into walls!

Author
Message
MTC Music
19
Years of Service
User Offline
Joined: 11th Sep 2005
Location: Montreal
Posted: 6th Jan 2013 23:21
Can anyone explain to me the reason that my teleports sometimes teleport the player stuck inside a wall? Even when I leave emplty squares around the teleport destination, it sometimes "magnetically" sticks the player to the wall!
Please help anoypne!

www.tomansuini.com
BlueFox
15
Years of Service
User Offline
Joined: 2nd Nov 2009
Location:
Posted: 6th Jan 2013 23:38
I found with using teleporters there were a couple things to remember.

1. Make sure if it is an enclosed area, make the room 3x3 (3 segments across and 3 segments down) to form a square.

2. Make sure the teleport "Out" entity is right in the middle. Just like the following:



As you can see, the IN can be in the one segment part with walls around it, but the OUT cannot due to the collision.

Here is the layout in game.



I can approach the teleport IN.



I teleport to the OUT and can move about without getting stuck.



- BlueFox
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 7th Jan 2013 00:17
Follow Bluefox instructions to the tee.

The problem is physics. If the player is closer than 100 (actually 80) units from the wall, behind the player, the player will get stuck. The player needs to be more than the 100 units. The best would be as Bluefox states which makes it around 150. Also, you can make an entity wall of the same texture and place it behind where the player will spawn -- only if you have to be closer. NBT had done this for his TGC Office Pack that includes an emulated lift that allows the player to select the desired floor. He uses the command that moves the player from one place to another as the transporter script does.

THEORY - you know everything but nothing works. PRACTICE - when everything works but don't know why. For me, theory and practice are combined: nothing works and I don't know why.
rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 7th Jan 2013 01:46 Edited at: 7th Jan 2013 01:47
Its a collision issue with an easy fix if you really want to appear in a corridor or whatever.
Here's a link to a previous thread which discusses this.

http://forum.thegamecreators.com/?m=forum_view&t=195955&b=21
MTC Music
19
Years of Service
User Offline
Joined: 11th Sep 2005
Location: Montreal
Posted: 7th Jan 2013 04:53
Bluefox: thank you so much forthe detailed reply. I have applied your instructions and it works much better now. I also noticed that thedistance from the teleport out to in must be at least 6 segments. My level has 8 sets of teleporters on the same level and i noticed that even though i named the ifused entity correctly, it sometimes looks like the player gets sucked into the wall towards a previous teleport in point, even when i leave an empty segment all around it.

Thanks for the help!

www.tomansuini.com

Login to post a reply

Server time is: 2024-11-23 16:47:44
Your offset time is: 2024-11-23 16:47:44