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 / Teleporter script help.

Author
Message
MaskedMakrel
13
Years of Service
User Offline
Joined: 1st Feb 2011
Location: US
Posted: 8th Feb 2011 19:56 Edited at: 9th Feb 2011 17:22
I have read the FPSC:official community guide. I looked at the script by xplosys and modified it every so slightly to meet my needs. (Lower radius).

Here is code:





The teleporter does teleport me to the destination, but then once I'm there I get rezapped to the teleporter out all the time as I walk through the level.

Here's how the set up is:

Player starts in room one.

In Room 2, teleporter in is set up as teleport pad to destination ("locutus").

In room 3, player teleports in. (So far, so good). Now when player starts walking around, the player ends up getting reteleported to locutus. Any ideas?
chorelan
13
Years of Service
User Offline
Joined: 9th Dec 2010
Location: trolling in a forum near you!
Posted: 9th Feb 2011 17:14
wouldnt it be simpler to just create two teleporters, then change make the main to the default teleporter script, then just change the ifused option? no real need to disect the script, the default just uses the ifused

bhawkgames.blogspot.org
MaskedMakrel
13
Years of Service
User Offline
Joined: 1st Feb 2011
Location: US
Posted: 9th Feb 2011 17:21
Thanks for the suggestion.

I will look at the default teleporter to see if it is more stable.

This script works. However, it is after the script that the game gets buggy. When I level test it, it seems to keep teleporting at places nowhere near the original teleporter and back to the destination.

This occurs when I am walking through the level. For example, I cannot reach the elevator on the floor because of random teleports.

I was hoping to be able to use this to move from one relevant segment to another in game. I'm currently trying to make sure the playable area is at the very least, connected in a rational fashion if the teleporting does not work without the side effects.
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 9th Feb 2011 17:24
At the end of the last line you need "state=2", otherwise the line starting "state=1" will keep being used.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
MaskedMakrel
13
Years of Service
User Offline
Joined: 1st Feb 2011
Location: US
Posted: 10th Feb 2011 04:53
@Ched80

TY. I think that was the problem. The script kept running and so it would continually teleport me to "locutus". It seems to work better now. I added ,state0 instead of 2 and it seems to do the trick.

Login to post a reply

Server time is: 2024-11-24 12:34:10
Your offset time is: 2024-11-24 12:34:10