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

Members Online

»
0 Active | 6 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: Move/Deactivate a Trigger_Damage Brush
Beej
General Member
Since: Feb 2, 2008
Posts: 45
Last: Jan 21, 2010
[view latest posts]
Level 2
Category: CoD4 Scripting
Posted: Thursday, Oct. 9, 2008 10:24 pm
Hey guys,

Is there a way to move or temporarily deactivate a trigger_damage brush?

I'm trying to make an openable window, that can also have the glass smashed... The window slides up in the wall when open and can't be seen, so I either want to move the damage trigger with it or somehow 'turn it off' when the window is open, is this possible?
Share |
uprize
General Member
Since: Jan 13, 2008
Posts: 24
Last: Oct 23, 2008
[view latest posts]
Level 1
Category: CoD4 Scripting
Posted: Saturday, Oct. 11, 2008 03:10 am
this worked in vcod and I had a look at the cod4 scripts and it should work aswell.

this is in your map gsc and call it from main

Code:

window_trigger()
{
while(1)
{
trig = getent("window_trigger","targetname");
if(window is open) //replace with whatever
trig thread maps\mp\_utility::triggerOff();
else 
trig thread maps\mp\_utility::triggerOn();
wait 0.05;
}
}




edited on Oct. 10, 2008 11:12 pm by uprize
Share |
Beej
General Member
Since: Feb 2, 2008
Posts: 45
Last: Jan 21, 2010
[view latest posts]
Level 2
Category: CoD4 Scripting
Posted: Wednesday, Oct. 15, 2008 11:54 am
Thanks alot uprize, trig thread maps\mp\_utility::triggerOff(); and trig thread maps\mp\_utility::triggerOn(); where just what I needed! [cool]

edited on Oct. 15, 2008 07:55 am by Beej
Share |
uprize
General Member
Since: Jan 13, 2008
Posts: 24
Last: Oct 23, 2008
[view latest posts]
Level 1
Category: CoD4 Scripting
Posted: Saturday, Oct. 18, 2008 03:58 am
np glad to help [pimp]
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

»