Author Topic: "Add to Scale" or addPlayerScale  (Read 3251 times)

You know where we already have setPlayerScale, right? Well, what if you specifically wanted to easily use events to add to the scale of your player?
For an example, you are at the scale x: 1.25, y: 1.25, z: 1.50 and you want to add different numbers to that scale like .5 to each one. So after you activate the event, your new size would be x: 1.75, y: 1.75, z: 2.00

With this, you have different ways of making games and also with an event like this, you could save lines of events.

Well setplayerscale uses only one float for all 3 axis, how do you want this to work?

Well setplayerscale uses only one float for all 3 axis, how do you want this to work?
It uses one float if you give it one float. If you give it three floats (through a custom event or manual function call), then it will use three floats
« Last Edit: June 23, 2014, 07:45:14 PM by Headcrab Zombie »

« Last Edit: June 24, 2014, 06:14:57 AM by Ninjaman 4 »

It uses one float if you give it one float. If you give it three floats (through a custom event or manual function call), then it will use three floats
No, I meant whether he wants addplayerscale to have 3 or 1 floats.

No, I meant whether he wants addplayerscale to have 3 or 1 floats.
I imagine 3, because that's how setPlayerScaleBetter works and I'm pretty sure that's what everyone uses.

registerOutputEvent("Player", "addPlayerScale", "vector");
function Player::addPlayerScale(%this, %vector)
{
    %this.setScale(vectorAdd(%this.getScale(), %vector));
}

This addon i recently created adds 3 events: SetPlayerHeight, SetPlayerWidth and SetPlayerLength
It doesn't add it only sets the scale.
Use it however you want.

http://www.mediafire.com/download/4qawevb25ukb9ie/Event_SetPlayerScaleDifferent.zip

This addon i recently created adds 3 events: SetPlayerHeight, SetPlayerWidth and SetPlayerLength
It doesn't add it only sets the scale.
Use it however you want.

http://www.mediafire.com/download/4qawevb25ukb9ie/Event_SetPlayerScaleDifferent.zip
He wants scales to add, not set.
« Last Edit: June 25, 2014, 09:53:36 PM by Advanced Bot »


Zeblote fulfilled this request. Just package it.

Zeblote fulfilled this request. Just package it.
I don't know how to package events.

Put the code into a server.cs, then make a description.txt (don't have to write anything), then put it into a zip named something like Event_AddPlayerScale

then put it into a zip
You can just put it in a folder. You only need to zip it if you're going to distribute it

Put the code into a server.cs, then make a description.txt (don't have to write anything), then put it into a zip named something like Event_AddPlayerScale
Thank you.

EDIT: It doesn't work.
« Last Edit: July 25, 2014, 09:26:44 PM by OzmarBlock »