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

Members Online

»
0 Active | 82 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 4
Category: CoD4 MP Mapping
CoD 4 mapping and level design for multiplayer.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: deactivate effects via trigger
karelkopp
General Member
Since: Jan 25, 2010
Posts: 16
Last: Sep 14, 2010
[view latest posts]
Level 1
Category: CoD4 MP Mapping
Posted: Monday, Aug. 30, 2010 02:33 pm
Hello please could anyone advise me?
I would like to manually deactivate certain effects on the map via trigger
but I do not know how :-(
Thank you very much in advance for any advice or help
Sincerely karelkopp
Share |
LiQ.HeaDShOt
General Member
Since: Jun 1, 2010
Posts: 51
Last: Feb 21, 2011
[view latest posts]
Level 3
Category: CoD4 MP Mapping
Posted: Tuesday, Aug. 31, 2010 12:10 am
Hey karelkopp,

if i understood it right, you want to: if a player is touching a trigger it will disable some effects?

Thanks,
LiQ.HeaDShOt
Share |
karelkopp
General Member
Since: Jan 25, 2010
Posts: 16
Last: Sep 14, 2010
[view latest posts]
Level 1
Category: CoD4 MP Mapping
Posted: Tuesday, Aug. 31, 2010 08:11 am
yes
Share |
LiQ.HeaDShOt
General Member
Since: Jun 1, 2010
Posts: 51
Last: Feb 21, 2011
[view latest posts]
Level 3
Category: CoD4 MP Mapping
Posted: Tuesday, Aug. 31, 2010 12:40 pm
then you must type like this:
(sry im a beginner so, idk if this is correct but, i just want to help)

Code:

if (player.isTouching("trigger"))


This will check if the player is touching the trigger,
then (if he is) CoD4 will exec the code (like disabling the desired effects.)

Sry, i'm not sure about this and i dont want to mess up your map.

Thanks,
LiQ.HeaDShOt

Share |
cskiller86
General Member
Since: Nov 23, 2009
Posts: 528
Last: Oct 25, 2011
[view latest posts]
Level 6
Category: CoD4 MP Mapping
Posted: Tuesday, Aug. 31, 2010 03:24 pm
I think he wanted to know how to deactivate an FX, actually.
AFAIK, there isn't a command that will stop an FX.
However, somehow it must be done, because this happens in the game.
The best example is the destructible cars, where if you shoot a car long enough it will start burning. The flame FX will stop after the car explodes.
I've skimmed through the destructible car gscs but couldn't find anything. I'll keep looking and if I find something I will let you know.
Share |
techno2sl
General Member
Since: Aug 5, 2004
Posts: 2977
Last: Oct 14, 2010
[view latest posts]
Level 9
Category: CoD4 MP Mapping
Posted: Tuesday, Aug. 31, 2010 03:37 pm
Where you can play a oneshot fx with a time limit on the fx setup in the effects editor instead of a looping fx.

But simple and easiest way is to assign the fx to a script_origin and then delete the script_origin... boom fx gone.
Share |
ivan_cro
General Member
Since: Jul 21, 2008
Posts: 463
Last: Oct 27, 2010
[view latest posts]
Level 5
Category: CoD4 MP Mapping
Posted: Tuesday, Aug. 31, 2010 09:37 pm
Techno's idea:

Make a script_origin with K,V of "targetname" - "effect" and trigger with K,V of "targetname","effect". Also before this you have to make that FX's is played from that same script_origin, and

thread fx_trig();

}

fx_trig()
{

trig = getent ("fxtrig","targetname"); // or trig = getentarray ("fxtrig","targetname"); if you want more.
fx = getent ("effect","targetname");
trig waittill ("trigger");
fx delete();

}


This is an improvised script, you can edit it.
ivan_cro

edited on Aug. 31, 2010 05:38 pm by ivan_cro
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 MP 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

»