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

Members Online

»
0 Active | 8 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
Page
Previous Page
subscribe
Author Topic: Help With Triggers
kmabigtime
General Member
Since: Jan 23, 2008
Posts: 162
Last: Apr 22, 2008
[view latest posts]
Level 4
Category: CoD4 Scripting
Posted: Saturday, Apr. 5, 2008 02:42 am
I have been trying to trigger a fire for hrs..I would like for a barrel to explode & catch some wood on fire..I have tried alot of different scripts including the 1 from Kill3r (which looks close to the ones here) http://www.modsonline.com/Forums-top-75265.html I changed the words to fit my needs & changed the line: "playsound(blah)" to "loadfx(my needed fx)" I got it to run with 0 errors & it did place the needed fx in my missing csv , which I cut from left pasted to right..but when I shoot the trig, no fire???
p.s. I do have fires working in the map already..I just want to be able to start the fire...
Share |
kmabigtime
General Member
Since: Jan 23, 2008
Posts: 162
Last: Apr 22, 2008
[view latest posts]
Level 4
Category: CoD4 Scripting
Posted: Saturday, Apr. 5, 2008 01:40 pm
Now I am getting a error, cannot find vision file when game is loading??
This is my gsc:
(map stuff)
burn_think();
}
burn_think()
{
trig = getentarray("burn_trig", "targetname");
for(i=0; i {
trig thread burn_wood();
}
}
burn_wood()
{
while(1)
{
self waittill("trigger");
playfx("fx,fire/oil_field_fire");
wait(1);
}
}


Share |
kmabigtime
General Member
Since: Jan 23, 2008
Posts: 162
Last: Apr 22, 2008
[view latest posts]
Level 4
Category: CoD4 Scripting
Posted: Saturday, Apr. 5, 2008 03:00 pm
Edit to above post.. Map loads fine, I get the error when the tigger is hit..
Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD4 Scripting
Posted: Saturday, Apr. 5, 2008 05:13 pm
vision file not found error? remove the vision file line from the right side of the zone file and rebuild.
Share |
kmabigtime
General Member
Since: Jan 23, 2008
Posts: 162
Last: Apr 22, 2008
[view latest posts]
Level 4
Category: CoD4 Scripting
Posted: Saturday, Apr. 5, 2008 05:43 pm
its not in the right side of cvs , that is why I posted the edit...I get the error during gameplay when i shoot the trigger...Sorry for the confusion..

edited on Apr. 5, 2008 01:45 pm by kmabigtime
Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD4 Scripting
Posted: Saturday, Apr. 5, 2008 08:49 pm
untick developer, developer_script and cheats and run again.
Share |
kmabigtime
General Member
Since: Jan 23, 2008
Posts: 162
Last: Apr 22, 2008
[view latest posts]
Level 4
Category: CoD4 Scripting
Posted: Saturday, Apr. 5, 2008 10:08 pm
Still no fire when triggered?? thx for the help though...
Share |
.KiLL3R.
General Member
Since: Oct 26, 2006
Posts: 1437
Last: Jul 3, 2017
[view latest posts]
Level 8
Category: CoD4 Scripting
Posted: Saturday, Apr. 5, 2008 11:17 pm
playfx("fx,fire/oil_field_fire");


you havnt set where to play the fx and you havnt precached it


make a brush and texture tools > trigger

make another one for where you want the fx to play and texture tools > origin

select both > right click > trigger > select type

Code:
<br />
main()<br />
{<br />
*usual map stuff*<br />
<br />
	thread burn_think();<br />
}<br />
<br />
burn_think()<br />
{<br />
	level.fx_burn_thing = loadFx("fire/oil_field_fire");<br />
<br />
	trigs = getentarray("burn_trig", "targetname");<br />
	for(i=0;i<trigs.size;i++)<br />
		trigs[i] thread burn_wood();<br />
}<br />
<br />
burn_wood()<br />
{<br />
	while(1)<br />
	{<br />
		self waittill("trigger");<br />
		playfx(level.fx_burn_thing, self.origin);<br />
		wait 1;<br />
	}<br />
}<br />


edited on Apr. 5, 2008 07:18 pm by .KiLL3R.
Share |
kmabigtime
General Member
Since: Jan 23, 2008
Posts: 162
Last: Apr 22, 2008
[view latest posts]
Level 4
Category: CoD4 Scripting
Posted: Saturday, Apr. 5, 2008 11:39 pm
Hurray[rocking]Thx a bunch, Kill3r...& by the way..Lmao, when I seen what the oil_field_ fire was...Kinda scared me when that giant oil rig popped up...[lol]
Share |
DeekCiti
General Member
Since: Mar 13, 2008
Posts: 1293
Last: Jul 9, 2016
[view latest posts]
Level 8
Category: CoD4 Scripting
Posted: Wednesday, Apr. 9, 2008 05:43 am
Sevenz...

I like your idea on the Trigger_use, but i don't have a script for that. If you could cook one up that would work for the windows and door frames that would be good. I could link it to an invisible non_colliding brushmodel that fills the whole house, or what you said using the nodraw, or just something that is invisible, pretty much making an invisible wall. Couldn't i just use cauk for that, or does it have to be something with a texture?

Let me know if you want to help out still...
Share |
Restricted Access Topic is Locked
Page
Previous Page
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

»