![]() |
|
Question about E2 name detection - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Expression 2 (https://teamscm.co.uk/forum-6.html) +--- Thread: Question about E2 name detection (/thread-1014.html) |
Question about E2 name detection - udop1 - 23-06-2015 Does anyone one know how to make an E2 detect what name you have, eg for it to detect that you are called udop1 or bob? If so how? If you could help that would be great! Thanks. RE: Question about E2 name detection - SuperPlayer - 23-06-2015 Have you tried something like this?: Code: Name = entity():owner():name()
print(Name)RE: Question about E2 name detection - udop1 - 23-06-2015 Would you know how to make the E2 get the owner of the E2's name and put it into a hologram showing it, I have done the hologram part Im just not sure how to make it find your name and use it RE: Question about E2 name detection - SuperPlayer - 23-06-2015 1.) Take the Name 2.) Splite the Name so you have every single letter on it own in an array 3.) Find the model belonging to the letter. It should be in SProps 4.) Set the holo model like models/path/letter_+NameSplit The last point you better do with for I=1,NameSplit:count(){ Holo etModel(models/path/letter_+NameSplit)} Lets hope i didnt mix Starfall with e2. I will test it when i am next on RE: Question about E2 name detection - udop1 - 24-06-2015 I have no idea how to do that
|