Author Topic: Need help with Player type changing, from another teams side.*Read to Understand  (Read 1836 times)

Ex: So let's say I'm making a build where people press a button and it randomly chooses a players type or datablock for the other team, I know I can make a randomizer for VCE, but I don't see how you can make the other player turn into another type when the randomizer chooses a number... Could someone help me? I'm a little bit inexperienced in scripting so I wouldn't know how to do that, but if it has to do with scripting I might have hit a roadblock..


Edit: I don't know if this goes in the right section, because it has to do with general blockland, but since I couldn't find another way I added it here, because if it's possible to script it, I might as well try it.
« Last Edit: July 24, 2017, 06:03:00 PM by woof :3 »

if you have a spawn room you can change the playertypes there based on VCE
if you want an output event that just targets everybody on a team, you may want to script that

But how would I do that? If I click a button which randomizer between different numbers, and then picks one, I want the other person to change to a certain player type based on the number it lands on. Like I said I know how to make a randomizer but how would I change the another players type when I'm the one that presses the button

if you have an input event that the other player will trigger (ie spawn room, or onplayertouch on the floors, or an event loop) then you could use VCE + that input
otherwise you may want to script it

you need to be more specific on what you're trying to do

I'll be more specific then (Example)

There are two teams: Players Boss

When the players spawn there is a Button That will Randomize Prints from 1-10. When the Button is pressed the Prints will Randomize and land on a certain Number. When this number is chosen, the Boss Team will change the player type Based on the Number chosen.

But my problem is... Can someone Help me on figuring out how to either script OR VCE the Button so it Chooses the Boss Team and changes the Player Type to the datablock or player model that I want the Boss Player to be. I hope I was specific enough please help...

do you have any event inputs on the boss player?
are they still in their spawnpoint?

Does it have to be on a spawn point, is it not possible to do a direct event output to a specific player?

Does it have to be on a spawn point, is it not possible to do a direct event output to a specific player?
No for first. Second is probably possible.
Though you might be able to do this with default events depending on how you want to do this.

You could have some brick give the boss the stuff it gets by toggling events. So when players press the button, randomizer goes off and the events for that boss on the boss brick get toggled on. Then boss can click the brick and get the stuff. This would be completely default, no other work or add ons required.

You could maybe make an event to target the boss team to switch their playertype (I'd also assume you'd want something to change their weapons, as well) though am not fully sure if this is possible. Don't like Slayer myself so can't say how it works.

All just depends on how you want to do it.

Also, yes this is the right section.

Does it have to be on a spawn point, is it not possible to do a direct event output to a specific player?
it doesn't have to be on the spawn area, it just makes it a lot easier
like I said before, you can have an event loop, but it's a bit messy and may lag the server more than it would with a script/evented spawn area

it's not possible to trigger a specific player without setting it up first
you can have an event loop on a player and then you can do things to them based on that


again, if you're more specific, I can help you better


You could maybe make an event to target the boss team to switch their playertype (I'd also assume you'd want something to change their weapons, as well) though am not fully sure if this is possible. Don't like Slayer myself so can't say how it works.



This is what I was looking for, Im going to keep trying to find out thanks for helping anyways guys

Ah won't be able to help on that then. Would recommend pming Greek2Me to find out how possible this is / the best way to do it. The event route is always possible though if it can't be done.

creating an event is possible, just a bit more difficult if you don't know what you're doing