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 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: vehicle ai problem
RollinHard
General Member
Since: Jun 7, 2006
Posts: 24
Last: Feb 22, 2010
[view latest posts]
Level 1
Category: CoD4 SP Mapping
Posted: Monday, Sep. 1, 2008 11:07 am
Ok this problem is a bit complex so i cant go into all details.
Lets imagine a vehicle is connected to script_structs points for the path and i started scripting from a flag trigger. Also 2 spawners are assigned to this vehicle. The needed vehicle(model)gsc, all assets & fx are included.So i hit the trigger in-game and the vehicle moves along the path...all speed settings or other functions on the script_struct points works fine but when the vehicle reached the point to delete i got a script error from the _vehicle_aianim.gsc.
I tried 2 ways to delete the vehicle:
-with a script_noteworthy on the last point and delete it via script
-the vehicle selfremove key/value
-I have a working hind in my map and there it works fine.

there 2 errors in the console
-type undefined is not a vector
-removed entity is not an entity

called from _vehicle_aianim.gsc
1413
org = animatemodel gettagorigin(tag);
942
animontag(model, tag, animation);
1435
guy waittillmatch(flag, "end");

So for me it looks like the threads want to play an animation on an actor/ai/model but this one is undefined...i tried several things but nothing fix this problem.
Thanks for any help.
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD4 SP Mapping
Posted: Monday, Sep. 1, 2008 05:58 pm
My guess the problem is not with the deletion of the model, but with the fact it somehow wants to do animation on it (probably the actor linked to it) AFTER it has been deleted. Did you remove the spawned actors before removing the vehicle?
Share |
RollinHard
General Member
Since: Jun 7, 2006
Posts: 24
Last: Feb 22, 2010
[view latest posts]
Level 1
Category: CoD4 SP Mapping
Posted: Wednesday, Sep. 3, 2008 10:59 am
ok thanks for the help caretaker...i fixed it..the problem was the show_rigs() function i used in the main vehicle thread..i retraced this one to the _vehicle_aianim.gsc
without this function it works fine[wave]
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

»