Re: my .gsc file is being ignored.
Posted: February 1st, 2010, 1:36 am
Even if your script is working, print functions won't appear to the player if they are placed at the same point in the script where everything is still initiating (You could try doing a wait 10 at the start of door1 and see if it prints).KillerSam wrote:Code: Select all
main() { maps\mp\_load::main(); iprintlnbold ("^2TEST-MAIN-THREAD"); ambientPlay("ambient_backlot_ext"); game["allies"] = "sas"; game["axis"] = "opfor"; game["attackers"] = "axis"; game["defenders"] = "allies"; game["allies_soldiertype"] = "woodland"; game["axis_soldiertype"] = "woodland"; thread door1(); } door1() { iprintlnbold ("^2TEST-DOOR-THREAD"); door1_left = getent("door1_left","targetname"); door1_right = getent("door1_right","targetname"); door1_trigger = getent("door1_trigger","targetname"); while (1) { door1_trigger waittill ("trigger"); door1_left movey (-134, 2, 0, 0.5); door1_right movey (134, 2, 0, 0.5); door1_left waittill ("movedone"); door1_right waittill ("movedone"); wait (2); door1_left movey (134, 2, 0, 0.5); door1_right movey (-134, 2, 0, 0.5); door1_left waittill ("movedone"); door1_right waittill ("movedone"); } }
Also, any compile errors?