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

Members Online

»
0 Active | 84 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
Page
Next Page
subscribe
Author Topic: movex-problem
kalieck
General Member
Since: Aug 9, 2006
Posts: 161
Last: Feb 14, 2009
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Sunday, Oct. 7, 2007 02:24 pm
hey there!

i have a question:
i made a small testmap for testing the movex-function cause i am a noob in scripting. this is my .gsc:

main()
{
maps\mp\_load::main();
thread dummy();
}

dummy()
{
dummy = getent("dummy","targetname");
dummy_trig = getent("dummy_trig","targetname");

while(1)
{
dummy waittill ("trigger",user);
dummy movex (128,5,1,1);
dummy waittill ("movedone");
}
}

there is no script error but when use the trigger it dont starts and i dont know why ... is there any help?

thx kAlieck
Share |
kalieck
General Member
Since: Aug 9, 2006
Posts: 161
Last: Feb 14, 2009
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Sunday, Oct. 7, 2007 03:50 pm
please help [duh]
Share |
kalieck
General Member
Since: Aug 9, 2006
Posts: 161
Last: Feb 14, 2009
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Sunday, Oct. 7, 2007 04:38 pm
no idea? [ohwell]
Share |
playername
Preferred Member
Since: Aug 24, 2006
Posts: 821
Last: Apr 15, 2011
[view latest posts]
Level 7
Forum Moderator
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Sunday, Oct. 7, 2007 04:47 pm
When you start CoD2 to run your map. Open console and type
/developer 1
once your trigger it, it should tell you what part of the script that is wrong and what is the problem. Post what it says here.

Also give us some time to post. wait a few days before you bump.

edited on Oct. 7, 2007 12:48 pm by playername
nullFew tips for coding.
1. Keep the script as short as possible.
2. Don't comment every line. Only comment portions where they may be needed to point something out.
3. Don't over complicate the script, keep it organized and easy to read.

These help you find simple errors and makes it easy to make changes.
Share |
kalieck
General Member
Since: Aug 9, 2006
Posts: 161
Last: Feb 14, 2009
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Sunday, Oct. 7, 2007 06:08 pm
when i press f and look into the console nothing chainged [confused]
Share |
kalieck
General Member
Since: Aug 9, 2006
Posts: 161
Last: Feb 14, 2009
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Sunday, Oct. 7, 2007 06:09 pm
kalieck writes...
Quote:
when i press f and look into the console (in developer mode) nothing chainged [confused]
Share |
TexasRebel
General Member
Since: May 1, 2006
Posts: 373
Last: Aug 20, 2013
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Sunday, Oct. 7, 2007 07:18 pm
Code:

main()
{
maps\mp\_load::main();
thread dummy();
}

dummy()
{
dummy = getent("dummy","targetname");
dummy_trig = getent("dummy_trig","targetname");

while(1)
{
dummy_trig waittill ("trigger");
dummy movex (128,5,1,1);
dummy waittill ("movedone");
}
}


you were not using the dummy_trig entity at all, so the code did not know when to start.
Share |
playername
Preferred Member
Since: Aug 24, 2006
Posts: 821
Last: Apr 15, 2011
[view latest posts]
Level 7
Forum Moderator
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Sunday, Oct. 7, 2007 10:11 pm
Ops didn't notice that. Sorry kalieck. All the creadit goes to Texas [thumbs_up]
nullFew tips for coding.
1. Keep the script as short as possible.
2. Don't comment every line. Only comment portions where they may be needed to point something out.
3. Don't over complicate the script, keep it organized and easy to read.

These help you find simple errors and makes it easy to make changes.
Share |
kalieck
General Member
Since: Aug 9, 2006
Posts: 161
Last: Feb 14, 2009
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Monday, Oct. 8, 2007 03:02 pm
thx texas and no problem playername [wink]
Share |
kalieck
General Member
Since: Aug 9, 2006
Posts: 161
Last: Feb 14, 2009
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Monday, Oct. 8, 2007 03:16 pm
another question:

what is the command for rotate a script-brushmodel around the own axis?

thx for any help ... kAlieck[jumping]
Share |
Restricted Access Topic is Locked
Page
Next Page
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

»