Author Topic: If client player object  (Read 2140 times)

Whats the code for this?
If client player object = true
if client player object = false

I'm assuming you want to code checking for if the client has a player object.

Code: [Select]
if(isObject(%client.player))for true
Code: [Select]
if(!isObject(%client.player))for false

I hate using %client.player

I use %client.getcontrolobject()

I don't know, I like it better.

Tom

I hate using %client.player

I use %client.getcontrolobject()

I don't know, I like it better.
I'm pretty sure the control object still exist even if the player is dead.

I'm pretty sure the control object still exist even if the player is dead.
Get mount of a player

%mount = %client.getcontrolobject().getObjectMount();

I don't know about being dead.

I hate using %client.player

I use %client.getcontrolobject()

I don't know, I like it better.

Please don't listen to this guy, he doesn't know what he's doing. Use %client.player like normal people. Do what Azimuth suggested.

Please don't listen to this guy, he doesn't know what he's doing.
Excuse me?

My method works normally for at least the stuff I'm doing.

When have I been wrong? You haven't improved, I can't believe you're still a jerk.

Excuse me?

My method works normally for at least the stuff I'm doing.

When have I been wrong? You haven't improved, I can't believe you're still a jerk.

This is not stuff you're doing. This is a guy asking a simple question about checking for the existence of a player. Don't go overcomplicating stuff, just give him a simple answer.

This is not stuff you're doing. This is a guy asking a simple question about checking for the existence of a player. Don't go overcomplicating stuff, just give him a simple answer.
Yes, how is overcomplicating being wrong. Yes, I was being overcomplicated.
« Last Edit: June 15, 2009, 08:38:29 PM by Kalphiter »

Yes, how is overcomplicating being wrong. Yes, I am overcomplicated.

What if the person you're trying to check is using F8? Uh oh, its going to use the camera isn't it. Stop trying to be clever because you're not.

This is not stuff you're doing. This is a guy asking a simple question about checking for the existence of a player. Don't go overcomplicating stuff, just give him a simple answer.
How would i go about having it check every little bit (like 5 seconds)

How would i go about having it check every little bit (like 5 seconds)
Through a server command? Or what?

What? Every little bit of what?

Through a server command? Or what?

You've already proved how unhelpful you are.

What? Every little bit of what?

You've already proved how unhelpful you are.
You're a jerk.

I have better stuff to do, then deal with your jerkyness.

Let's start from the beginning. Why are you a jerk?

every 5 seconds.

example
Code: [Select]
//check every 5 seconds(){
if(!isObject(%client.player)){
//message the client
}
}

Also,
Kalphiter  just stop.