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 help

Author
Message
Black Terror
18
Years of Service
User Offline
Joined: 22nd Mar 2006
Location: Pulse Game Development
Posted: 26th Sep 2007 04:54
Is there a script so when you press enter no matter where you are in a level you teleport to an entity?

Thank you.

//// - - FURTHER SOLUTIONS - - \\\\
SELL YOUR GAMES AND MEDIA!
pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 27th Sep 2007 17:45
Try this:



The Swarm of flying pigs is coming...
Killer&Slaughter Machines Pack too!
Black Terror
18
Years of Service
User Offline
Joined: 22nd Mar 2006
Location: Pulse Game Development
Posted: 27th Sep 2007 23:47
I tried assigning this to the object that you teleport to and it didn't work. I also assigned it to the teleport in entity and it didn't work. Yes I changed the name in the fpi.


Custom graphics, textures, and segments
Black Terror
18
Years of Service
User Offline
Joined: 22nd Mar 2006
Location: Pulse Game Development
Posted: 27th Sep 2007 23:57 Edited at: 28th Sep 2007 00:10
Fixed it. Last state=0 should be state=1. Thanks.

Edit: no, sometimes it doesn't transport me and sometimes I go to the floor below...


Custom graphics, textures, and segments
pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 28th Sep 2007 17:48 Edited at: 28th Sep 2007 17:49
Quote: "no, sometimes it doesn't transport me and sometimes I go to the floor below..."

Strange. Maybe fixable by placing the object exactly in the middle of the place (I mean at 50% of the height) and giving it this script:


If it doesn't work, try :state=0:coloff,state=1
Hope that helps


The Swarm of flying pigs is coming...
Killer&Slaughter Machines Pack too!
Black Terror
18
Years of Service
User Offline
Joined: 22nd Mar 2006
Location: Pulse Game Development
Posted: 28th Sep 2007 20:59
If I give that script to the teleport, how will I go to it when I press 't'?

If you want you can IM me because I have to type from my phone, so its kinda hard. MSN works though.


Custom graphics, textures, and segments
pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 30th Sep 2007 02:02 Edited at: 30th Sep 2007 02:07
Quote: "If I give that script to the teleport, how will I go to it when I press 't'?"


Give the 1st script to a triggerzone somewhere in your level (no matter where) and enter the name of the teleport destination (object) in YOURENTITYNAMEHERE.

And then give the teleport destination (object) the second script (you don't need to, but this will fix possible collision problems). Now you should be able to teleport yourself, no matter where you are, to the destination place by simply pressing the 't' button...

EDIT: If want to teleportate from an teleportation entity, give it this script:



The Swarm of flying pigs is coming...
Killer&Slaughter Machines Pack too!

Login to post a reply

Server time is: 2024-11-23 22:16:26
Your offset time is: 2024-11-23 22:16:26