Blockland Forums > Modification Help

Teleporting self to a random player with light key

Pages: (1/3) > >>

YourBuddyBill:

All right, so I'm making a "Creepy Player" playertype, and I want it so that when the person playing as the creepy hits their light key (Jet is being used for something else, I'm afraid) it won't trigger their light but instead find a random player in the server (it's target) and warp the creepy to a random point that is six to twenty bricks away from the target player, and have it facing the target player after warping. How do I go about this?

mp7964:

You could use a raycast to search if the player is in a certain range, and if there's more than one, pick a random number for the player, do getPosition on the random player, then use setTransform on the Creepy Player.

YourBuddyBill:

Did you read the thing all the way?
See, when you press the light key, it gets a random player anywhere in the server, hereafter reffered to as the 'target'.
It teleports to a point a random small distance from the target.
I can remember no script stuff, so everything I make has to be copied from somewhere.

jes00:


--- Quote from: YourBuddyBill on February 17, 2012, 06:23:02 PM ---I can remember no script stuff, so everything I make has to be copied from somewhere.

--- End quote ---
So in other words you have no idea whatsoever how to make this and what you do make you will have stolen from other people's scripts?

YourBuddyBill:


--- Quote from: jes00 on February 17, 2012, 06:39:41 PM ---So in other words you have no idea whatsoever how to make this and what you do make you will have stolen from other people's scripts?

--- End quote ---

More like I have no idea how to make this but I need someone to help me. I can remember some real basic stuff, but I have trouble wrapping my head around most anything else.

If I'm just gonna get flamed, I'll just lock the topic and crawl back to my corner. /outcast

Pages: (1/3) > >>

Go to full version