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

Members Online

»
0 Active | 6 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 2
Category: CoD2 SP Mapping
Call of Duty 2 single player mapping, scripting and everything single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Ai without weapons
Carl21221
General Member
Since: Apr 13, 2006
Posts: 134
Last: Jul 31, 2015
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Friday, Jan. 4, 2008 02:53 pm
Anyone have an idea how to make AI without a weapons? i have tried "takeallweapons()" but it didn't work. Is it even possible? if so how would i do it?

Ty in advance
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 SP Mapping
Posted: Friday, Jan. 4, 2008 05:29 pm
You could always make the AI drop it's weapons after spawn with the dropweapon() function.

How this works is explained in the docs which come with Radiant.
Share |
Carl21221
General Member
Since: Apr 13, 2006
Posts: 134
Last: Jul 31, 2015
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Saturday, Jan. 5, 2008 10:51 pm
it works, but he still has the weapon in his hands and there is a gun on the floor which i do not want it to be there. i want it to be gone fully
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 SP Mapping
Posted: Sunday, Jan. 6, 2008 08:14 am
Isn't there a SP level with a weaponless AI somewhere? If so, go over the script and see if you can figure out how it's done that way...
Share |
Tropheus
General Member
Since: Sep 6, 2004
Posts: 11
Last: Feb 27, 2008
[view latest posts]
Level 1
Category: CoD2 SP Mapping
Posted: Wednesday, Feb. 27, 2008 09:25 am
try this

my_ai.hasWeapon=0

++
Troph
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: CoD2 SP Mapping
Posted: Wednesday, Feb. 27, 2008 04:53 pm
Or
ai_entity gun_remove();
Share |
taufikbe23
General Member
Since: Apr 10, 2008
Posts: 17
Last: Sep 5, 2008
[view latest posts]
Level 1
Category: CoD2 SP Mapping
Posted: Friday, Jul. 4, 2008 09:43 am
i knew this from map ship on the cod sp level. Cpt. price was walking around without weapon.


try this:

ai dropweapon();
ai.weapon = "none";

but, in cod1, you must define the stand and walk animation for unarmed actror.

if not, you'll see an actor without weapon but acted just he has a weapon.[wave]
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 SP 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

»