UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

[User Tutorial] How To Custom Name Your AI's

broken avatar :(
Created 12 years ago
by Deleted User
0 Members and 1 Guest are viewing this topic.
2,404 views
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
Hello UGX MODS today i am going to show you how to custom name i wanted to do this because i could not find anything in scirpts about this before your read the tutorial YaPh1l show me for to do this so all credit go to him :D :D


first spawn in a AI then as a key do this :)
Code Snippet
Plaintext
script_friendname

As a value it what you want the AI name in my case i name him after my friend so like this, but this can be anything

Code Snippet
Plaintext
thepcgamer228

so it should look like this



now compile your map and that's it :)
it should look like this in game



then that's it your done :)
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 10 years ago
Posts
2,789
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
I suppose this is good for each individual "guy", but what about spawners?
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
I suppose this is good for each individual "guy", but what about spawners?

hello i am not 100% sure what you mean but i think you mean a zombie spanner idk if you can do it :)
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 3 years ago
Posts
5,544
Respect
6,646Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Signature
If Java had true garbage collection, most programs would delete themselves upon execution.
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
I suppose this is good for each individual "guy", but what about spawners?
Have you tried setting it from script? Unless I'm misunderstanding your question...

KvPs are just member variables of the object/struct in script.. so you can set script_frieldlyname by doing getEnt in script and saying ent.script_friendlyname = "johndoe";
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 10 years ago
Posts
2,789
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
Have you tried setting it from script? Unless I'm misunderstanding your question...

KvPs are just member variables of the object/struct in script.. so you can set script_frieldlyname by doing getEnt in script and saying ent.script_friendlyname = "johndoe";

Yeah i had forgotten about Treyarch's AI name database script thing. I can't remember how long their script was, but i remember it being really long so i am kind of looking for an easier and shorter way of applying custom names to AI from spawners.

 
Loading ...