Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 9 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty
Category: CoD Mapping
CoD mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: SP Naming AI
shanehayesr
General Member
Since: May 10, 2008
Posts: 125
Last: Jun 8, 2008
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Monday, May. 19, 2008 03:34 am
Hey,
I Took a Tuturial, That Said if I Gave the AI a
Key of "script_friendname"
and a Value of "Pvt.Nickles"

Then His Name in the Game would be "Sgt. Nickles".
But It did not Work. Can some one help me name my AI?

- And if you don't know what I mean...
In Single Player if you move your crosshair over and Allied Player, it says His Name (e.g Cpl.Sloth) and then what Type of Soldire he is. So it would be like..

Clp.Sloth
Rifleman

HOW DO I DO THIS?!
Share |
SparkyMcSparks
General Member
Since: Feb 28, 2004
Posts: 1713
Last: Dec 29, 2016
[view latest posts]
Level 8
Im a fan of MODSonair
Category: CoD Mapping
Posted: Monday, May. 19, 2008 04:22 am
In script you easily do entity.Name = "Pvt. Nickles";
Share |
shanehayesr
General Member
Since: May 10, 2008
Posts: 125
Last: Jun 8, 2008
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Monday, May. 19, 2008 04:28 am
ok... where?

gimme a Full Example.

Key: script_friendname
Value: Pvt. Nickles

?
Share |
SparkyMcSparks
General Member
Since: Feb 28, 2004
Posts: 1713
Last: Dec 29, 2016
[view latest posts]
Level 8
Im a fan of MODSonair
Category: CoD Mapping
Posted: Monday, May. 19, 2008 04:33 am
Give your AI a KVP in Radiant
"targetname" "nickles"

And in your level GSC,

Code:
main()
{
maps/_load::main();

getEnt( "targetname", "nickles" ) thread setup_nick();
}

setup_nick()
{
self.Name = "Pvt. Nickles";
}
Share |
shanehayesr
General Member
Since: May 10, 2008
Posts: 125
Last: Jun 8, 2008
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Monday, May. 19, 2008 04:46 am
alright! that worked. but I have Multiple People to name. how do I do that?
Share |
thecheeseman
General Member
Since: Mar 27, 2008
Posts: 33
Last: Jul 26, 2009
[view latest posts]
Level 2
Im a fan of MODSonair
Category: CoD Mapping
Posted: Monday, May. 19, 2008 05:58 pm
Simple lol. Like so:

Code:
main()
{
	maps\_load::main();

	thread ai_setup();
}

ai_setup()
{
	// guys to get -- replace "guy" with your guy's targetname
	guy1 = getent("nickles","targetname");
	guy2 = getent("guy2","targetname");
	guy3 = getent("guy3","targetname");

	// heres where they get named
	guy1.name = "Pvt. Nickles";
	guy2.name = "Sgt. Smithy";
	guy3.name = "Gen. Anderson";
}


Just copy and paste "guy3" and rename it to whatever, so you could have:

Code:
guy4 = getent("guy4","targetname");
guy5 = getent("guy5","targetname");

guy4.name = "Gen. Pickles";
guy5.name = "Sgt. No name";


Simple, right? Lol. Hope this helps!

edited on May. 19, 2008 01:59 pm by thecheeseman
Share |
shanehayesr
General Member
Since: May 10, 2008
Posts: 125
Last: Jun 8, 2008
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Monday, May. 19, 2008 07:33 pm
Cool, Thanks a Bunch! [wave]
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoD Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»