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

Members Online

»
1 Active | 58 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: Player in Blackhawk
Pablo_Abruzzi
General Member
Since: Jan 30, 2010
Posts: 93
Last: Aug 10, 2011
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Sunday, Aug. 22, 2010 10:10 am
Hello

So today I want to add player to blackhawk, I know how do it, but unfortunately then I can't move my heli and that is the problem. I use this code:

Code:
#include common_scripts\utility;        

#include maps\_utility;

#include maps\_vehicle;


main()
{
maps\_blackhawk::main( "vehicle_blackhawk" );  
maps\_load::main();
maps\lina_anim::main();  

maps\_vehicle::scripted_spawn(0);

level.player disableweapons(); 
level.player allowcrouch(false);
level.player allowprone (false); 

level.vehicle = getent("unit1", "targetname"); 

level.seat = spawn("script_model",level.vehicle.origin);

level.seat setmodel("tag_origin");

level.seat linkto(level.vehicle,"tag_guy2",(0,0,-25),(0,0,15)); 
level.player PlayerLinkToDelta( level.seat, "tag_origin", 0,50,50,50,50,0,"false" ); 
}


I know what is missing, but when I'm doing it for struck:
Code:

path = getstruck ("auto1", "targetname"); 
level.vehicle attachPath(path);
level.vehicle startPath();


It's always give me a error: type struct is not an entity, I also try with "script_noteworthy", but it's the same problem.

Please help me.

Share |
techno2sl
General Member
Since: Aug 5, 2004
Posts: 2977
Last: Oct 14, 2010
[view latest posts]
Level 9
Category: CoD4 SP Mapping
Posted: Sunday, Aug. 22, 2010 10:42 am
It's:

self = getstruct("structname", "targetname");

Not struck [thumbs_up]
Share |
Pablo_Abruzzi
General Member
Since: Jan 30, 2010
Posts: 93
Last: Aug 10, 2011
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Sunday, Aug. 22, 2010 02:03 pm
That was my mistake - but only in forum, in mission is correct, and still the same error.
Share |
sam_fisher3000
General Member
Since: Apr 18, 2007
Posts: 816
Last: Jul 16, 2016
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD4 SP Mapping
Posted: Thursday, Aug. 26, 2010 05:31 am
Your code seems correct. You don't need to script for your heli path. I use script_origins. I just connect script_origins to the blackhawk and it does wut it does. Make sure the trigger and the heli has this in the key/value: script_vehiclestartmove 1

That's probably why the heli won't move.
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

»