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

Members Online

»
0 Active | 64 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

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 4
Category: CoD4 SP Mapping
CoD 4 mapping and level design for single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: AI Shoot Targets
4codrazor
General Member
Since: Feb 23, 2012
Posts: 95
Last: Apr 7, 2016
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Saturday, Jan. 17, 2015 03:29 am
Hey guys, i was wondering if it is possible to make an AI constantly shoot a model or even a trigger ? because i want to make a training level so that it looks like the ai are training too. thanks[thumbs_up]
Share |
MODDER_BC
General Member
Since: Oct 17, 2012
Posts: 54
Last: Jan 30, 2015
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Wednesday, Jan. 21, 2015 01:21 am
Make an Alley Actor
targetname: shooter

Make a script_brushmodel
targetname: shooter_target


Then use a function like so. It can be more complex but that's up to you.

Code:
my_shooter()
{
shooter = getent("shooter","targetname");  // Name of Actor
target = getent("shooter_target","targetname");  //Name of My script_brushmodel
shooter AllowedStances( "crouch", "stand" );  // Stances to use
shooter SetEntityTarget( target, 0.7 ); // Actor starts shooting
}
Share |
4codrazor
General Member
Since: Feb 23, 2012
Posts: 95
Last: Apr 7, 2016
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Wednesday, Jan. 21, 2015 06:02 am
Cheers Modder [rocking]

P.S: you found out the heli from safehouse ?
Share |
MODDER_BC
General Member
Since: Oct 17, 2012
Posts: 54
Last: Jan 30, 2015
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Wednesday, Jan. 21, 2015 06:30 am
P.S: you found out the heli from safehouse ?

Yes, check the post about it, there is a download link to the files.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 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

»