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.

Author
Message
Black Terror
18
Years of Service
User Offline
Joined: 22nd Mar 2006
Location: Pulse Game Development
Posted: 3rd May 2008 18:41
I've asked this before but the script does not work any more for some reason, maybe due to an update. But can someone help me out with a script that teleports you to an entity when you press <t>?

Thanks.

Beavey
16
Years of Service
User Offline
Joined: 2nd May 2008
Location: 255.255.255.0
Posted: 3rd May 2008 19:55
Hmmm... I tried something, but I have no time to test it out... In theory:
1. place this script in the main AI of a random entity in your level. Just make sure you cannot destroy this entity which must be dynamic (if i am correct). In the IfUsed write for example Teleport1
2. Then place where you want the entity you want the player to move to when you press the <t> key. Call this entity Teleport1

I am noob, and it is my third script I work with. If anyone more expert than me finds any mistakes in what I have come out, please post here. Otherwise, let me know if it works for you

Script:
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 3rd May 2008 20:57
:state=0,scancodekeypressed=20:plrmoveto=EntityName,state=1
:state=1,scancodekeypressed=0:state=0

Just change the EntityName to whatever name you gave to the entity that is the destination.

Don't forget to visit Conjured Entertainment

Beavey
16
Years of Service
User Offline
Joined: 2nd May 2008
Location: 255.255.255.0
Posted: 3rd May 2008 21:12
Wow! I was close though....
Black Terror
18
Years of Service
User Offline
Joined: 22nd Mar 2006
Location: Pulse Game Development
Posted: 4th May 2008 06:02
That is pretty much what I tried last time. Making sure, I assign this to the entity that I teleport to or a trigger zone?

Also the sound is another thing I was thinking about, is Beavey correct using :sound=audiobank\scifi\scenery\lifts\teleport.wav?

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 4th May 2008 06:06
1) I would do "plrsound", to make sure the player hears it correctly.

2) You assign that to an entity that has been declared "Always Active". You need to do that so the entity control system doesn't disable it when you get too far away.


The one and only,


Login to post a reply

Server time is: 2024-11-24 08:10:14
Your offset time is: 2024-11-24 08:10:14