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

Members Online

»
0 Active | 19 Guests
Online:

LATEST FORUM THREADS

»
Auto Assign
CoD+UO Map + Mod Releases
Include MP weapons in SP
CoDWW 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 Restricted Access subscribe
Author Topic: how to let ai spawn without a weapon
dennis_wl
General Member
Since: Jan 24, 2016
Posts: 4
Last: Feb 17, 2016
[view latest posts]
Level 0
Category: CoD4 SP Mapping
Posted: Friday, Feb. 12, 2016 03:20 am
Hello,

How do i spawn an AI without a weapon?

Thankyou[thumbs_up]
Share |
Ni3ls
General Member
Since: Nov 7, 2008
Posts: 256
Last: Sep 9, 2017
[view latest posts]
Level 5
Category: CoD4 SP Mapping
Posted: Sunday, Feb. 14, 2016 03:20 pm
Code:
Spawning AI
AI Spawning: Make a brush, apply the Trigger texture to the entire brush. With the brush selected Right Click the 2d Grid > Trigger > Multiple. With the trigger still selected press "N", now check the box marked "Trigger_Spawn".
Now all you need is an actor (note this should work with all actors)
Right Click the 2d Grid> Actor> Enemy> Arab> AR> Ak47
(as you can see for the purpose of the tutorial I have used an Actor, who is an Enemy to the player, who has the outfit of a Arab, who is using an Assualt Rifle, and has the weapon AK47)

With the actor selected press "N" check the box: "SPAWNER" (note:: he will not spawn if the player can see him spawn)
You may now link the Trigger to the AI.
Select the Trigger, then select the AI Actor, press W. A visible line will connect them. The reason they are connected in this order is simple. The Trigger activates the Actor, not the other way around.


So maybe dont select AK47?

Source: http://wiki.modsrepository.com/index.php?title=Call_of_Duty_4:_SP_-_Beginner_Tutorial%23Spawning_AI
Share |
dennis_wl
General Member
Since: Jan 24, 2016
Posts: 4
Last: Feb 17, 2016
[view latest posts]
Level 0
Category: CoD4 SP Mapping
Posted: Monday, Feb. 15, 2016 02:51 pm
Thanks for the reaction.

I know how to do that but i mean : like in FNG the killhouse mission you have cpt. Price standing by the table without a weapon so he has no weapon in his hands... how can i do that to spawn a AI WITHOUT a gun in his hands

Share |
SparkyMcSparks
General Member
Since: Feb 27, 2004
Posts: 1713
Last: Dec 29, 2016
[view latest posts]
Level 8
Im a fan of MODSonair
Category: CoD4 SP Mapping
Posted: Monday, Feb. 15, 2016 04:01 pm
Code:
#include maps\_utility;


ai = GetEnt( "my_ai", "targetname" );
ai gun_remove();
Share |
SPi
General Member
Since: Jul 4, 2012
Posts: 527
Last: Aug 18, 2018
[view latest posts]
Level 6
Category: CoD4 SP Mapping
Posted: Tuesday, Feb. 16, 2016 04:23 pm
Listen to SparkyMcSparks
run gun_remove();
on defined Ai on script.
Share |
dennis_wl
General Member
Since: Jan 24, 2016
Posts: 4
Last: Feb 17, 2016
[view latest posts]
Level 0
Category: CoD4 SP Mapping
Posted: Wednesday, Feb. 17, 2016 12:22 am
So if i go to radiant i have to select a AI en then press 'N' and then key = targetname and value = my_ai and then add that code to the script?
Share |
SPi
General Member
Since: Jul 4, 2012
Posts: 527
Last: Aug 18, 2018
[view latest posts]
Level 6
Category: CoD4 SP Mapping
Posted: Wednesday, Feb. 17, 2016 04:12 am
yeah just follow the sparkyMcSparks code.
If your AI is spawned then you will have to define it as script_noteworthy (think of it like a second targetname value)and call it with get_living_ai instead of getent
Share |
dennis_wl
General Member
Since: Jan 24, 2016
Posts: 4
Last: Feb 17, 2016
[view latest posts]
Level 0
Category: CoD4 SP Mapping
Posted: Wednesday, Feb. 17, 2016 07:18 am
SPi can i add you on steam or somthing??? :D

or add me

jwz_0174
Share |
Restricted Access Restricted Access 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

»