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

Members Online

0 Active | 48 Guests


Q4 General
eXtreme+ v2.9
CoDBO Map + Mod Releases
map loading error
CoD2 MP Mapping
Good Servers on PC
CoDBO General



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 : Quake 4
Category: Q4 Scripting
Scripting and Coding for Quake 4
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Restricted Access Topic is Locked subscribe
Author Topic: looping an effect or animation
General Member
Since: Jul 11, 2005
Posts: 18
Last: Jul 11, 2007
[view latest posts]
Level 1
Category: Q4 Scripting
Posted: Friday, Jan. 27, 2006 12:37 am
my level script so far is as follows:

void setup_objects()

void deconlight_move()
$deconlight.moveTo ( $deconmovepoint1);
sys.waitFor ($deconlight);

void deconlight_return ()
$deconlight.moveTo ( $deconreturn1);
sys.waitFor ($deconlight);

void coollight_move()
$coollight.moveTo ( $lightmover1);
sys.waitFor ($coollight);

void main ()
setup_objects ();
deconlight_move ();
deconlight_return ();
coollight_move ();


I want coollight to loop, and when I try to add while(1); to coollight move, the game gives a runaway loop thread error when running the map, any help would be appreciated. thanx guys, Im trying really hard to learn everything I need to know to make a full blown mod.
Share |
Preferred PLUS Member
Since: Nov 6, 2001
Posts: 95759
Last: Oct 31, 2018
[view latest posts]
Level 10
Forum Moderator
Im a fan of MODSonair
Im a HOST of MODSonair
Category: Q4 Scripting
Posted: Friday, Jan. 27, 2006 07:39 am
where are you putting your while() statement?

example script:

void dowithit() {
	$mymover.moveToPos('72 56 8');
	$mymover.moveToPos('72 -56 8');

void main() {
	while(1) {

This script will forever move $mymover back and forth between those positions.
Go ahead... You Play I Mod : Support Modsonline by becoming a PREFERRED MEMBER today!
Have you heard the MODSonair Podcast?:
MODSonair is a weekly podcast bringing you the news from a modders perspective.
Tune in every Sunday at 12pm EST to listen LIVE.
Quake 4 Mods for Dummies - Half-Life 2 Mods for Dummies
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Quake 4 : Q4 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