Author Topic: Set Player Movement  (Read 4352 times)

I have yet to see somebody post stating as to whether or not this can be accomplished via new event as opposed to changing the player datablock.

I'm VERY curious...

I have yet to see somebody post stating as to whether or not this can be accomplished via new event as opposed to changing the player datablock.

I'm VERY curious...

Me too.

Is it possible to have an event that changes your datablock into a vehicle? (other than horse)

Let me see if I can remember this right:

The horse isn't a WheeledVehicle class, instead it's a Player class.  The minifig we know and love is also a Player class, so you can easily switch between them without much trouble.  However, the Jeep (and many other vehicles) are NOT the player class, so switching it around isn't as simple.  I've tried some stuff similar to it, and it's really hacky and doesn't work that well.

Basically, it's possible, but it has to be done right.


Unless I'm totally off, because I haven't really coded with vehicles in a long while, so I might be full of crap. :cookieMonster:

The horse isn't a WheeledVehicle class, instead it's a Player class.  The minifig we know and love is also a Player class, so you can easily switch between them without much trouble.

The tank turret is a Player class too.
See what I'm getting at? :D
« Last Edit: November 23, 2008, 12:14:44 PM by Truce »

See what I'm getting at?

Not really, no. The turret doesn't have wheels. What's your point?

You'd have to make a new datablock for every speed you wanted to make this work, unless on-the-go value changes work now.

The difference is that the tank turret is made to be mounted onto a vehicle, and thus using it alone has a bunch of glitches.


Roblox much?
Assumptive much?


I have a Mac.
I can't even forward ports.

Not really, no. The turret doesn't have wheels. What's your point?

That changing your player to a tank turret is just as easy as changing it to a horse.
It was in response to Aloshi's comment.

I like the idea and i think it should be made

ty!

I kind of thought that it should be like a vehicle that is slightly bigger than the player, and looks like a space suit. It should use the magic carpet script. the player would be standing in the suit, with only the face showing, or no suit at all, just an invisable thing that sticks to your feet and works like the carpet. It could also make you lie on your stomach and use a jet sorta thing when going fast, also using the magic carpet script.

I can not model for my life, and I cant open script files right, so:
I NEED SCRIPTERS!
and:
I NEED MODELERS!

Wow now, lets not jump to conclusions. Remember, we aren't going to make anybody do anything they don't feel like doing.
i like your idea with the spacesuit, but wouldn't that limit opportunities?
 When you wear a spacesuit on earth do you still jump 14 feet in the air?
Its a good idea, and i know some people don't care either way, but I'd suggest sticking with the events for now.
Maybe we could use an area of effect-type brick event that did things to the player's abilities.

Hold that thought, it's a good one.

The plan:

(wait for the sudden realization to seep in that they can't modify the player's datablock on the fly without making a datablock for every situation)

(wait for them to not get why that is an issue)

(tell them why it is an issue)

(thread dies)


Course of action:

Explain
"I have yet to see somebody post stating as to whether or not this can be accomplished via new event as opposed to changing the player datablock.

I'm VERY curious..."
In detail.

The player's datablock controls all of the player's properties- their speed, their jumping power, their jet fuel, etc. So in order to modify the player's speed we need to modify or change the datablock. If you wanted to modify their speed through an event, we would have to change or modify their datablock through the event.

The event does not control the speed, the datablock does. Therefore a new event would just end up changing the datablock anyways.


"Maybe we could use an area of effect-type brick event that did things to the player's abilities."
Which would have to change the datablock.

Are you starting to see where this is going?


Creating datablocks on the fly for each new speed would likely be the only way to accomplish this, and doing so is very glitchy and is not suggested. Having preset datablocks for each speed would use up hundreds of datablocks. Using hundreds of datablocks would likely increase load times and if there are too many, increase the occurrence of crashes.


There is only one way I can think of to logically get this done, but it would require that the player download a client side mod, and would be very easy to hack and run at 10x speed.

THATS the post i was looking for.
Thank you rkynick.

They all lived happily ever after.

Haleluya

That means that it is possible right? Accept with a new datablock.

it should be a "Float around no gravity" crouch is down jump is up