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 4
Category: CoD4 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Help: triggering exploding door to re-appear
GRIM-Slapdash
General Member
Since: Mar 15, 2008
Posts: 7
Last: Feb 24, 2009
[view latest posts]
Level 0
Category: CoD4 Scripting
Posted: Friday, Aug. 1, 2008 11:50 pm
Help: triggering exploding door to re-appear

Okay so i am building a map with a door that explodes when you use c4 or grenades or if i shoot it enough.
after it blows up you can walk through the hole in the wall.

but i want to make it so that after some one walks through the door after its exploded that it will reappear so he is the only one that can get through.
it will unlock a secret to the map so i don't want everyone so just see the open door after one person goes through.

also is it possible to make it so that if no one goes through with in a certain amount of time it also closes.

i am thinking this might be accomplished with setting the health value back to 100 when these events are triggered?
im not sure just taking a wild guess.


edited on Aug. 1, 2008 07:50 pm by GRIM-Slapdash
Share |
SQUISHY44
General Member
Since: Apr 16, 2007
Posts: 213
Last: Jul 20, 2011
[view latest posts]
Level 4
Category: CoD4 Scripting
Posted: Saturday, Aug. 2, 2008 01:10 am
post your script and i can help you
Share |
GRIM-Slapdash
General Member
Since: Mar 15, 2008
Posts: 7
Last: Feb 24, 2009
[view latest posts]
Level 0
Category: CoD4 Scripting
Posted: Saturday, Aug. 2, 2008 02:33 am
i followed this tutorial
http://www.youtube.com/watch?v=2Xf4KTxdGQA&feature=related
Share |
SQUISHY44
General Member
Since: Apr 16, 2007
Posts: 213
Last: Jul 20, 2011
[view latest posts]
Level 4
Category: CoD4 Scripting
Posted: Saturday, Aug. 2, 2008 04:19 am
to do what you want it to do, you will need a script...

Example:
Code:

main()
{
	maps\mp\_load::main();

thread door();
}

door() 
{ 
trig = getent("door_trigger","targetname"); 
door = getent ("door","targetname");
door show();
trig show();
while (1) 
{ 
trig waittill ("damage", idamage); 
if(idamage > 1) 
{ 
door hide();
trig hide();
wait (5);
door show();
trig show();
} 
} 
} 


edited on Aug. 2, 2008 12:20 am by cz_squishy
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 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

»