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

Members Online

»
0 Active | 68 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 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Flak 88 Error?
s6robi
General Member
Since: Jun 12, 2006
Posts: 85
Last: Feb 18, 2021
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Sunday, Oct. 4, 2009 06:48 pm
Hello,
I put a flak 88 model in my map and had german soldiers manning the gun and also had them shoot at me. I followed a tutorial by rkm11 and I had no trouble at all getting this to work. BUT, my problem lies when I tried to use a different model of flak 88 then rkm11 suggested. In rkm11's tutorial he said to either use "xmodel/german_artillery_flak88" or
"xmodel/german_artillery_flak88_nm". But unfortunately those two models have there cannons not in the air. So, I added this model instead xmodel/german_artillery_flak88_aa_static (which has its cannon sticking straight in the air like I want) but when I try to run my map I get this error:

Flak88Error

I really want xmodel/german_artillery_flak88_aa_static as my flak 88 of choice but for some reason it is not working. The other two flak 88's that were mentioned in the tutorial by rkm11 worked with no problem, but once I add the one I want i get a problem. My question is WHY?

By the way, here is the begining part of my code for my .gsc file:



#include maps\_utility;
#include maps\_anim;
#using_animtree("generic_human");

main()
{
//***************Initialize Vehicals****************\\

maps\_flak88::main("xmodel/german_artillery_flak88_aa_static");

//***************Initialize script****************\\

maps\_load::main();
maps\aitest_fx::main();
maps\aitest_anim::main();




If anyone knows what to do and can help please reply back to this post.

Thank you for your time,
s6robi.

Share |
jeannotvb
General Member
Since: Dec 8, 2007
Posts: 620
Last: Feb 1, 2010
[view latest posts]
Level 6
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Sunday, Oct. 4, 2009 09:03 pm
You cannot use models with _static behind them for animations and so on. They are meant for 'display' and cannot do anything really.

Why can't the flak 88 shoot in the air? Can't you just target an entity that's flying?
Share |
s6robi
General Member
Since: Jun 12, 2006
Posts: 85
Last: Feb 18, 2021
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Sunday, Oct. 4, 2009 10:48 pm
you know what jeannotvb, I actually never thought of that. I am going to try it real fast.
Share |
s6robi
General Member
Since: Jun 12, 2006
Posts: 85
Last: Feb 18, 2021
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Sunday, Oct. 4, 2009 11:27 pm
Ok now I am kinda stumped....how can I make my xmodel/german_artillery_flak88_nm thats in my map fire into the sky. I can only make it fire at level plain at is it firing at me too. I want it to be firing in the sky, but how? I placed a script_origin in the sky and connected the flak88 to the cript_origin but no luck.

If anyone can help me please repost back to me.

s6robi.
Share |
jeannotvb
General Member
Since: Dec 8, 2007
Posts: 620
Last: Feb 1, 2010
[view latest posts]
Level 6
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Monday, Oct. 5, 2009 05:55 am
You must not connect anything.. Use script.

Define your struct and Flak 88 in script, then use the following function:

Code:

setTurretTargetEnt( your target entity here );


The Flak 88 will aim at it.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

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

»