how can i make a obj that a player can build and thay can set the X.Y.Z of were it teleports you?
and how can i make it were Admins have a command to teleport to X.Y.Z
thanks
ID:170196
![]() Mar 9 2005, 9:36 am
|
|
You should be using Entered() on that, but, it's an object, so that won't work. Enter() won't work either.
|
Jamesburrow wrote:
obj I think "untested" could have been implied, because this is wrong on several levels. Unless the player tries to enter that obj's contents, which I think is not the case here, its Enter() proc isn't going to be called. What you want to do is have the turf with this obj on it react, since it's the turf that will have Enter() and Entered() called. Besides that, you used the wrong proc: Entered() applies after the player steps, but Enter() only checks to see if a step is valid and returns true or false. Given how many times teleporters have been covered on the forums, there are a lot of posts with working code that you could check out. At the very least you should know more about how to do this yourself before trying to help others through it. Lummox JR |
Lummox JR wrote:
What you want to do is have the turf with this obj on it react I actually thought of making it a turf, but he said he wanted to make it an object *shrugs* Besides that, I use Entered() in most of my coding, I guess I forgot the -ed in that post. |
Jamesburrow wrote:
Lummox JR wrote: You could've used Bumped(forum,search,it), it always works. =/ |
Hell Ramen wrote:
Bumped(forum,search,it)I know what it is. Now, was the fact that I either should have made it a turf or used Bump() or Bumped() the only problems? |
Jamesburrow wrote:
Hell Ramen wrote: Use Bumped() on the object, and set its density to 1. That would've made the teleport code work. |
Jamesburrow wrote:
Lummox JR wrote: That's why it's important to think code through. When using an obj, using Enter() or Entered() for that obj was not going to work. A simple test would have confirmed it. Lummox JR |
Stan44 wrote:
o.O oh wow umm yea well now i know why that dint work.... Do you have the verb? |
You do have the coding that makes an admin right? I can't remember it offhand, but that is what you would use to access that classification of verbs. That is the only problem I can think of that could stop it from working.
|
Jamesburrow wrote:
You do have the coding that makes an admin right? I can't remember it offhand, but that is what you would use to access that classification of verbs. That is the only problem I can think of that could stop it from working. umm dipends... i do not think its same as what your talken about... do you have verb umm first off i dont realy under stand what your saying... any ways iv kinda start worken on nother game well part two of it... and i wonted this code to work... Teleport part 2 of codeing addhud() |
I hope that answers your question! Like I said, the first one is untested, but it should set you on the right path if it doesn't work.