Author Topic: I need a client-side framework  (Read 1217 times)

I want to make a specific client-side mod that plays your play an alarm when a person touches you, or clicks you, but I don't know the framework, can somebody please help?

Both of those things require a server plug, it can't be purely client-sided

Both of those things require a server plug, it can't be purely client-sided
Oh ok. 1 more thing, I need help with the Schedule command. Is there a way to use it without the last perimeter being to call a function?

the touching one can be client sided, you just need to keep checking the distances between players and yourself

Oh ok. 1 more thing, I need help with the Schedule command. Is there a way to use it without the last perimeter being to call a function?
Um. What exactly are you trying to do? The only thing I can think of is maybe you're trying to define a variable after a schedule?

the touching one can be client sided, you just need to keep checking the distances between players and yourself
I thought Badspot made it so you can't get players distance's client-side
« Last Edit: July 30, 2012, 01:35:52 PM by Headcrab Zombie »

I'm trying to make an AFK bot that switches my movements every 1000 secs, something like this
Code: [Select]
function afkBotP()
{
      moveForward(1);
      schedule(1000,0,NaN);
      moveForward(0);
      yaw(2);
      schedule(1000,0,afkBotP);
}

So you're trying to beat AFK kickers?

So you're trying to beat AFK kickers?
What else, Greek? I'm just experimenting here.

Both of those things require a server plug, it can't be purely client-sided

Wrong, you can do both of those, client sided.

I need help with schedule command :c

Wrong, you can do both of those, client sided.
Not an option.

I need help with schedule command :c
The schedule command takes milliseconds (0.001 of a second), not seconds, which was your first fault.

Your second fault was trying to use schedule(1000,0,NaN); to delay your code, it doesn't work like that.
You need to have a looping function, and have it call a different function, and that will do the moving.

Wrong, you can do both of those, client sided.
Do tell then

Do tell then
He's right, but it would be a repeat of terragen multiplayer. (badspot would have to patch it right away.)

He's right, but it would be a repeat of terragen multiplayer. (badspot would have to patch it right away.)
Why do you think I asked him to tell? If he can say it here on the forums, then it is a viable option. If he can't, it isn't.

Not an option.
The schedule command takes milliseconds (0.001 of a second), not seconds, which was your first fault.

Your second fault was trying to use schedule(1000,0,NaN); to delay your code, it doesn't work like that.
You need to have a looping function, and have it call a different function, and that will do the moving.
Wow thanks, it forces me to make more functions for this, but it works. I made a prototype of it that moves and turns at every second. Not very realistic, but I was doing this through the console, later I will do it on an add-on.