Author Topic: Random Teleports  (Read 1790 times)

Not solo teleport. OnActivate> Name brick> setPlayerTransform.

If more than 5 brick. Player touch or click on the brick teleport random to somewhere 5 brick.

You can already do this using VCE, Furling.

You can already do this using VCE, Furling.

VCE is broken or something, I've always tried to use VCE to make something randomize and it never works.

VCE is broken or something, I've always tried to use VCE to make something randomize and it never works.
it's always worked for me
you're doing something wrong, so post what you're doing so we can fix it?

it's always worked for me
you're doing something wrong, so post what you're doing so we can fix it?
Can you post it at here of vce event?

wait, doesn't it randomly tele you when there's mulitple instances of a name anyway?

wait, doesn't it randomly tele you when there's mulitple instances of a name anyway?
No it teleports you to a midpoint between the instances

VCE is broken or something, I've always tried to use VCE to make something randomize and it never works.
Look, to randomize vce:

Don't ever forget to set the variable you're trying to 0 first, it acts as the minimum number. If you don't set it, it gives you a number between null and whatever number you put into the other box. This normally returns something like 0.123847523

Here's the correct way to get a random number
Code: [Select]
OnActivate -> self -> vce_modvariable var set 0   //This sets the minimum to 0
OnActivate -> self -> vce_modvariable var rand 10    //This generates a number between the value of 'var' and 10, setting the result to the variable 'var'
OnActivate -> client -> centerprint  <var:br:var>

« Last Edit: December 15, 2012, 02:37:32 PM by Evar678 »

Code: [Select]
OnActivate -> self -> vce_modvariable var set 0   //This sets the minimum to 0
OnActivate -> self -> vce_modvariable var rand 10    //This generates a number between the value of 'var' and 10, setting the result to the variable 'var'
OnActivate -> client -> centerprint  <var:br:var>
If only VCE was intuitive..

wait, doesn't it randomly tele you when there's mulitple instances of a name anyway?

no, only the last placed brick



Last time I checked it was the midpoint.
I could be wrong.

Last time I checked it was the midpoint.
I could be wrong.

I wish it was halfway, that would be interesting.

I wish it was halfway, that would be interesting.
There's a way to do it still, actually.

Somebody make script for this.