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

Members Online

»
0 Active | 7 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 MP Mapping
CoD 4 mapping and level design for multiplayer.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page
subscribe
Author Topic: Javelins, tanks, spawns and asad
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD4 MP Mapping
Posted: Sunday, Sep. 14, 2008 07:20 pm
They are functions and go in your script.

The enablelinkto() function tells your script the entity you're calling it on can be linked to something. The linkto() function links it to something else.
Read the script reference link I posted, both of the functions are explained in there.
Share |
*Delta*Obi-Wan
General Member
Since: Jul 16, 2007
Posts: 233
Last: Dec 24, 2010
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Wednesday, Sep. 17, 2008 02:20 pm
Here is what happened, i made the script_brushmodel, it has a targetname, its connected to the tank, here is the actual script:

self.t72clip EnableLinkTo();
self.t72clip LinkTo( self, "tank1", (0,0,0), (0,0,0) );

where t72clip is the brushmodel and tank1 is the tank, but the brush doesnt move, and the tank passes above it, i dont know what i did wrong

[confused]
Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Wednesday, Sep. 17, 2008 04:09 pm
linkto does not require 4 arguments
Share |
*Delta*Obi-Wan
General Member
Since: Jul 16, 2007
Posts: 233
Last: Dec 24, 2010
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Wednesday, Sep. 17, 2008 05:16 pm
I removed the 0.0.0.0's but now it gives me an unitialized variable of tank1,
do i precache the model of the tank or, not sure [confused]
Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Wednesday, Sep. 17, 2008 05:26 pm
Code:
LinkTo( <linkto entity>, <tag>, <originOffset>, <anglesOffset> )


try self.t72clip LinkTo( self );

edited on Sep. 17, 2008 01:32 pm by Sevenz
Share |
*Delta*Obi-Wan
General Member
Since: Jul 16, 2007
Posts: 233
Last: Dec 24, 2010
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Wednesday, Sep. 17, 2008 06:01 pm
it works, but the tank is still not connected to it, what i really need is to find out how to initialise th variables, like the error i get when the map starts, unitialised value of tank1, where tank1 is the targetname of the script_vehicle
Share |
tomv8
General Member
Since: Oct 5, 2008
Posts: 469
Last: Jul 14, 2010
[view latest posts]
Level 5
Category: CoD4 MP Mapping
Posted: Sunday, Nov. 9, 2008 06:42 pm
tank1 = getEnt( "your tanks target name", "targetname" );

err that should do it? basic scripting,, you have to intilize a target [lol]
Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 MP 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

»