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

Members Online

»
0 Active | 3 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 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
Page
Previous Page
subscribe
Author Topic: Advanced spawning commands?
pinedsman
General Member
Since: Feb 27, 2007
Posts: 85
Last: Nov 28, 2012
[view latest posts]
Level 3
Category: CoD4 MP Mapping
Posted: Thursday, Jun. 4, 2009 02:17 pm
Does it have an error message?
Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Thursday, Jun. 4, 2009 02:50 pm
script_delay on the spawner works just fine, 30 = 30 seconds
Share |
*Delta*Obi-Wan
General Member
Since: Jul 16, 2007
Posts: 233
Last: Dec 24, 2010
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Thursday, Jun. 4, 2009 05:45 pm
- No message, just crashes

- Can the script_dealy function be used with flags?
Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Thursday, Jun. 4, 2009 10:05 pm
which flags?

my spawner:
Code:
"script_delay" "30"
"origin" "-1636.0 136.0 252.0"
"targetname" "auto1"
"spawnflags" "3"
"export" "1"
"model" "body_sp_opforce_b"
"classname" "actor_enemy_opforce_SHTGN_m1014"


spawner trigger:
Code:
"spawnflags" "32"
"target" "auto1"
"classname" "trigger_multiple"


the very basic map gsc:
Code:
#include common_scripts\utility;

#include maps\_utility;

#include maps\_anim;


#using_animtree ("generic_human");

main()
{
	maps\_load::main();
	
	level.player takeallweapons();
	level.player giveweapon("mp5");
	level.player giveweapon("usp");
}
Share |
voidsource
General Member
Since: May 5, 2007
Posts: 1513
Last: Sep 1, 2013
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Thursday, Jun. 4, 2009 11:40 pm
Quote:


- Can the script_dealy function be used with flags?



you can set them in radiant as well as in script. I believe i have seen them in the blackout.map that came with the tools.
Share |
SparkyMcSparks
General Member
Since: Feb 28, 2004
Posts: 1713
Last: Dec 29, 2016
[view latest posts]
Level 8
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Thursday, Jun. 4, 2009 11:55 pm
*Delta*Obi-Wan writes...
Quote:
- No message, just crashes

- Can the script_dealy function be used with flags?


You can just check _load and _utility to find out the answer about whether script_delay works or not, or take a minute or two to build map with no lighting and see if it did anything.

_load.gsc
Code:
trigger_funcs[ "flag_set" ] = ::flag_set_trigger;


Code:
flag_set_trigger( trigger )
{
	flag = trigger get_trigger_flag();
	
	if ( !isdefined( level.flag[ flag ] ) )
	{
		flag_init( flag );
	}
	
	for ( ;; )
	{
		trigger waittill( "trigger" );
		self script_delay();
		flag_set( flag );
	}
}


_utility.gsc
Code:
script_delay()
{
	if( isDefined( self.script_delay ) )
	{
		wait( self.script_delay );
		return true;
	}
	else 
	if( isDefined( self.script_delay_min ) && isDefined( self.script_delay_max ) )
	{
		wait( randomFloatRange( self.script_delay_min, self.script_delay_max ) );
		return true;
	}<br />
<br />
	return false;
}


Answer: Yes script_delay, script_delay_min, and script_delay_max work on flag triggers.
Share |
*Delta*Obi-Wan
General Member
Since: Jul 16, 2007
Posts: 233
Last: Dec 24, 2010
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Friday, Jun. 5, 2009 07:14 am
OK thankks for the reply guyd. testing now...
Share |
Restricted Access Topic is Locked
Page
Previous Page
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

»