Ok, call me an idiot, but this code is not working for me to summon the mob I have in my test-world:
summon(mob/M as mob in world)
M.loc = usr.loc
When I use it the mob disappears
Any help?
ID:171686
![]() Aug 21 2004, 3:40 pm
|
|
Then maybe try using this if the one your using doesn't work. I can't really see what is wrong with yours.
M.x = src:x M.y = src:y M.z = src:z ~Chance |
Nick231 wrote:
> summon(mob/M as mob in world) That would set M.loc to null. |
Could you show the entire relevant code snippet? That is, the entire definition back to the root of its source.
|
Try this summon verb
I use this in my GM summon code mob/verb I know it works, so post what u think of it. |
Hmm... Your right, I assumed it was this way because the other just didn't work (while it should).
Teleport_To_Me(mob/M as mob|obj in world) That's the code from my game exactly and it works... |
That would work aswell however you should not use : unless it is absolutely neccesary (and in this case it is not).
|
Works fine for me...
<code>mob/verb Summon(mob/M as mob in world) M.loc = usr.loc</code> |
I'm not positive, but you shouldn't have mob/M as mob in world, since you already defined M when you did mob/M. It should probably just be mob/M in world.
~Chance