Blockland Forums > Modification Help

Need help scripting.

Pages: << < (18/31) > >>

zefoo:


--- Quote from: elm on June 27, 2012, 07:46:35 PM ---Yes, and the name of the person is stored as a variable in their client. So if you have their player object then it would look like so:

%playerName = %playerObject.client.name;

With their client object:

%playerName = %clientObject.name;

--- End quote ---
So if im aiming at them and
--- Code: ---%playerName = %playerObject.client.name;
--- End code ---
is "Ran" then who ever im aiming at will be stored in the variable %Playername?

elm:


--- Quote from: zefoo on June 27, 2012, 07:50:49 PM ---So if im aiming at them and
--- Code: ---%playerName = %playerObject.client.name;
--- End code ---
is "Ran" then who ever im aiming at will be stored in the variable %Playername?

--- End quote ---

No, read my above post.

Ipquarx:


--- Quote from: zefoo on June 27, 2012, 07:50:49 PM ---So if im aiming at them and
--- Code: ---%playerName = %playerObject.client.name;
--- End code ---
is "Ran" then who ever im aiming at will be stored in the variable %Playername?

--- End quote ---
You need to do a Raycast first. I can't remember the exact function, but inb4port.

elm:


--- Quote from: Ipquarx on June 27, 2012, 07:52:03 PM ---You need to do a Raycast first. I can't remember the exact function, but inb4elmedittoolate.

--- End quote ---


zefoo:

So if I want to see if %targetName = nothing then would i do  this?

--- Code: ---if(%targetname = "")
--- End code ---
?

Pages: << < (18/31) > >>

Go to full version