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

Members Online

»
0 Active | 9 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
Category: CoDUO Mapping
CoD United Offensive mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: scripts?
magdoom
General Member
Since: May 4, 2006
Posts: 172
Last: Nov 8, 2006
[view latest posts]
Level 4
Category: CoDUO Mapping
Posted: Thursday, Nov. 2, 2006 03:35 am
Hey, ive been having dificulties with scripting.. did a few searches on this and didnt see anything that helped.


for coduo, where do u input scripts for them to be ran ingame (on a specific map)

like im tryin to make realistic doors(sumwhat) and i dont know where to place the scripts... help please :D

thanks
Share |
amishthunder
General Member
Since: Oct 24, 2004
Posts: 364
Last: Dec 23, 2008
[view latest posts]
Level 5
MODSCON
Im a fan of MODSonair
Category: CoDUO Mapping
Posted: Thursday, Nov. 2, 2006 03:42 am
In the .gsc of your map. Place a
Quote:
level thread door();
in teh main section and then underneath your closing bracket of main() put
Quote:
door()
{
//Your code here
}



edited on Nov. 1, 2006 10:42 pm by amishthunder
Share |
magdoom
General Member
Since: May 4, 2006
Posts: 172
Last: Nov 8, 2006
[view latest posts]
Level 4
Category: CoDUO Mapping
Posted: Thursday, Nov. 2, 2006 03:44 am
I'll try it. Thx for fast reply, was tryin to have this map completed sunday lol... didnt work tho :P
Share |
magdoom
General Member
Since: May 4, 2006
Posts: 172
Last: Nov 8, 2006
[view latest posts]
Level 4
Category: CoDUO Mapping
Posted: Thursday, Nov. 2, 2006 03:48 am
uhh in a script, can u put it like this::

{
door = getent ("door1", "targetname”);
trig = getent ("trigger1", "targetname”);
while (1)
{
trig waittill ("trigger");
door rotateto((90,0,0),1.5,.2,.2);
door waittill ("rotatedone”);
wait (4);
door rotateto((-90,0,0),1.5,.2,.2);
door waittill ("rotatedone”);
}
}

or do u have to remove the (") on getent, waittill, etc?
Share |
codmp
General Member
Since: Feb 7, 2006
Posts: 905
Last: Aug 1, 2011
[view latest posts]
Level 7
Category: CoDUO Mapping
Posted: Friday, Nov. 3, 2006 12:32 am
Quote:
uhh in a script, can u put it like this::

{
door = getent ("door1", "targetname”);
trig = getent ("trigger1", "targetname”);
while (1)
{
trig waittill ("trigger");
door rotateto((90,0,0),1.5,.2,.2);
door waittill ("rotatedone”);
wait (4);
door rotateto((-90,0,0),1.5,.2,.2);
door waittill ("rotatedone”);
}
}

or do u have to remove the (") on getent, waittill, etc?


Nope, you keep the quotes on those areas of the script.
Share |
magdoom
General Member
Since: May 4, 2006
Posts: 172
Last: Nov 8, 2006
[view latest posts]
Level 4
Category: CoDUO Mapping
Posted: Saturday, Nov. 4, 2006 05:08 am
Ok, well then i either have an internal cod error, or the script doesnt work :S
Share |
Mystic
General Member
Since: Apr 10, 2004
Posts: 6147
Last: Apr 15, 2018
[view latest posts]
Level 10
Forum Moderator
Im a fan of MODSonair
Category: CoDUO Mapping
Posted: Saturday, Nov. 4, 2006 09:16 am
When you start the game type;

/developer 1

Press enter and type;

/devmap mapname

You should then get the problem report in the console. Get that information and pass it here.
Share |
magdoom
General Member
Since: May 4, 2006
Posts: 172
Last: Nov 8, 2006
[view latest posts]
Level 4
Category: CoDUO Mapping
Posted: Saturday, Nov. 4, 2006 06:43 pm
Ok. I did that and it told me where the error was... it wasnt a ' " ' it was some other key that looked like that so i didnt see it...

then i did it again and i got script compile error =, and a bunch of different calls that were errored.

how would i create a console log?
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoDUO 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

»