Few Suggetsions, yet again

Started by Kewun, Aug 21, 2016, 08:58 AM

Previous topic - Next topic

KAKAN

because the event is called even when your X, Y or Z has a change of value of 0.001
oh no

Kewun

so what

using 0.5 instead of 1 ?

KAKAN

Quote from: Kewun on Aug 23, 2016, 08:36 AMso what

using 0.5 instead of 1 ?
lol no. Either take a array and set it to true when the player is near it else make it false.
Or
if the change in X, Y or Z is less than 0.9, stop the function.( return or break will do the work I think, but it might make the player unable to move ).
something like:-
isonred <- array( 100, false );
function onPlayerMove( player, X, Y, Z, oldX, oldY, oldZ ){
if( objectNearThePlayer ){
if( isonred[ player.ID ] ) break;
//your code.
isonred[ player.ID ] = true;
}
When your work is done, set that array to false.
And I suggest you to make a timer instead of using that command.
oh no

Kewun


KAKAN

Quote from: Kewun on Sep 06, 2016, 05:51 PMwe need player.FadeCamera
wtf is that? And too, no one needs it.
oh no

Kewun

for example fading a player's camera

like when you get shoot you can fade the camera with red for 500 miliseconds

Shadow

Quote from: Kewun on Sep 06, 2016, 06:01 PMfor example fading a player's camera

like when you get shoot you can fade the camera with red for 500 miliseconds

...which can be achieved on clientside by gradually changing a window's transparency over time....
QuotePS:is trash is ur home language??