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

Members Online

»
0 Active | 89 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 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
Page
Previous Page Next Page
subscribe
Author Topic: SP Objectives & AI spawning.
65kawasaki
General Member
Since: Nov 15, 2013
Posts: 73
Last: Sep 19, 2017
[view latest posts]
Level 3
Category: CoD2 SP Mapping
Posted: Friday, Oct. 17, 2014 06:56 pm
Yes i did
Share |
antonio.horvatovic0
General Member
Since: Jan 31, 2014
Posts: 225
Last: Jul 14, 2017
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Friday, Oct. 17, 2014 07:01 pm
Try to make a trigger_once that covers the area where the wapon is and call him obj2, ofc delete that name from the weapon.
Share |
65kawasaki
General Member
Since: Nov 15, 2013
Posts: 73
Last: Sep 19, 2017
[view latest posts]
Level 3
Category: CoD2 SP Mapping
Posted: Friday, Oct. 17, 2014 07:05 pm
Ok, i try but i want a weapon without a trigger .
You will have to swap the weapon.. and then is obj completed
Share |
65kawasaki
General Member
Since: Nov 15, 2013
Posts: 73
Last: Sep 19, 2017
[view latest posts]
Level 3
Category: CoD2 SP Mapping
Posted: Friday, Oct. 17, 2014 07:09 pm
It work with trigger.
Something must be wrong with the line: obj2 waittil (!level.player hasweapon("panzerschreck"));
Share |
antonio.horvatovic0
General Member
Since: Jan 31, 2014
Posts: 225
Last: Jul 14, 2017
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Friday, Oct. 17, 2014 07:19 pm
Is the objective completed only when you pick up the weapon?
Share |
65kawasaki
General Member
Since: Nov 15, 2013
Posts: 73
Last: Sep 19, 2017
[view latest posts]
Level 3
Category: CoD2 SP Mapping
Posted: Friday, Oct. 17, 2014 07:24 pm
No, when i get a new objective ( Get a Panzerschreck. ), the panzerschreck disappears and it write me Objective completed.
Share |
antonio.horvatovic0
General Member
Since: Jan 31, 2014
Posts: 225
Last: Jul 14, 2017
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Friday, Oct. 17, 2014 07:31 pm
Try with the ! mark or if you have it ,try without the ! mark
Share |
65kawasaki
General Member
Since: Nov 15, 2013
Posts: 73
Last: Sep 19, 2017
[view latest posts]
Level 3
Category: CoD2 SP Mapping
Posted: Saturday, Oct. 18, 2014 05:05 am
I tried with the trigger_once.
When i touched the trigger, it wrote me out Objective completed but i didnt picked it up.

obj2 waittill ("trigger");

i used this line and it waited till i do to the trigger.
I tried without and with ! but still the same error
Share |
antonio.horvatovic0
General Member
Since: Jan 31, 2014
Posts: 225
Last: Jul 14, 2017
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Saturday, Oct. 18, 2014 07:03 am
This line you need to remove cause it pauses the script until you touch the trigger. Try a fresh start, create a trigger_once and call it obj2, create a weapon and dont give it a name at all. Then use this
obj2()
{
obj2 = getent("obj2","targetname");
objective_add(2,"active",&"NOYERS_NOYERS_PANZERSCHRECK",( -665, -22, 45));
objective_current(2);
obj2 waittill (!level.player hasweapon("panzerschreck"));
objective_state(2,"done");
obj2 delete();
}
When I get the time I'll try to make this for my map and report back...
Share |
65kawasaki
General Member
Since: Nov 15, 2013
Posts: 73
Last: Sep 19, 2017
[view latest posts]
Level 3
Category: CoD2 SP Mapping
Posted: Saturday, Oct. 18, 2014 07:25 am
attachment: image(854.6Kb)
Look at this photo.
Share |
Restricted Access Topic is Locked
Page
Previous Page Next Page
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

»