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

Members Online

»
0 Active | 79 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 subscribe
Author Topic: use_touch doesn't activated firt time :/
Slipknot14
General Member
Since: Feb 23, 2005
Posts: 109
Last: Sep 4, 2012
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Saturday, Apr. 30, 2011 10:31 am
Hello!
I made a map with doors + panels that opens the doors with specify keys. Players need to get keys for every doors. Every door and keys works perfectly, but one of my use_touch is makes me angry :D
That use touch is disabled everytime when I start the map. The trigger activates only after, when I go across with noclip on the door.... After I doing this, the use_touch is works perfectly, but before this, it's doing nothing.
I tried to delete my gsc-s and remake the trigger but nothing :S
Why is this happens? :/
The other door panels work fine :S
Thanks, Creep.
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Saturday, Apr. 30, 2011 10:56 am
Post your script here please.
Share |
Slipknot14
General Member
Since: Feb 23, 2005
Posts: 109
Last: Sep 4, 2012
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Saturday, Apr. 30, 2011 12:20 pm
Code:
key2()
{
key = getent("key_two","targetname");
key_touch = getent("key_two_trig","targetname");
while(1)
{
key_touch waittill ("trigger",user);
if(!isDefined(user.key2)){
	key hide();
	user iprintlnbold("Hmm, this cube opens a gate maybe..");
	user.key2 = true;
	user setOrigin ( (333, 176, -445) );
	wait 5;
	key show();
}
else {
	user iprintlnbold ("I have this cube already...");
	wait 3;

}
wait 0.05;
}
}

key2_door()
{
trig2 = getent("key_two_open","targetname");
door1 = getent("key_two_door1","targetname");
door2 = getent("key_two_door2","targetname");
cube2 = getent("cube2","targetname");
while(1)
{
cube2 hide();
trig2 waittill ("trigger",user);
if(isDefined(user.key2)){
	cube2 show();
	door1 moveZ (-119,1);
	door1 waittill ("movedone");
	door2 moveX (70,2);
	door2 waittill ("movedone");	
	wait 4;
	door2 moveX (-70,2);
	door2 waittill ("movedone");
	door1 moveZ (119,1);
	door1 waittill ("movedone");
	cube2 hide();
}
else
{
	user iprintlnbold("I should find a key or something first...");
	wait 2;
}
wait 0.05;
}
}


But it doesn't work withut the script too. The hand icon appears, only after I noclipped the door :/
Now I deleted the script_brushmodel door, and it works fine :/ I'll remake that door, maybe it helps :)

But IzNoGoD you are hungarian, aren't you?:) And are you jumping?
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Saturday, Apr. 30, 2011 02:06 pm
Im not hungarian, but I have been jumping in the strafed x team, cod2.
If you are the real creep, i love your maps :)
Share |
Slipknot14
General Member
Since: Feb 23, 2005
Posts: 109
Last: Sep 4, 2012
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Saturday, Apr. 30, 2011 04:49 pm
Oh okay, I thought you are hungarian too :))
Yes, I'm that Creep :D And I'm playin and mappin for Strafed now :) Thanks :$

jm_rena2 is ready to play, but this small bug makes me angry :D
Share |
Restricted Access Topic is Locked 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

»