Page 1 of 1

My scripts dont work anymore =[ Help?

Posted: April 10th, 2011, 12:42 pm
by Lawless
Ok heres my problem...
My scripts are not working anymore and its not that the scripts have an error or something because I tested the same script with a different trigger and it still didnt work.

I know the script I tested with works because well it works with the trigger i created before all this happend and now it doesnt =[

Does anyone know why my scripts arent working please help?

Re: My scripts dont work anymore =[ Help?

Posted: April 10th, 2011, 12:57 pm
by Rezil
We can't help you if you don't provide any additional info other than 'suddenly stopped working'. Were you modifying your map .gsc? Renaming triggers? Did you remember to actually make a trigger, not just texture a brush with the 'trigger' texture?

Re: My scripts dont work anymore =[ Help?

Posted: April 10th, 2011, 1:36 pm
by Lawless
Rezil wrote:We can't help you if you don't provide any additional info other than 'suddenly stopped working'. Were you modifying your map .gsc? Renaming triggers? Did you remember to actually make a trigger, not just texture a brush with the 'trigger' texture?
Well thats what happend soo...
But i have the trigger set up with trigger_use_touch ,
I have the target set to "move" and targetname "bounce_trig" ,
I have the origion and brush targetname "move" and count set to "90" ,
I have "maps\mp\_bounce_trigger::main();" In my mp_lawless_v2.gsc.
I know you dont have to have the targetname "move" but its just easier to remember.
I have everything set up the way my working one is just with different names.

Heres the script

Code: Select all

main()
{
	thread self_closing_doors();
}
self_closing_doors()
{
	doors = getentarray("bounce_trig","targetname");
	for(i=0; i<doors.size; i++)
	{
		doors[i] thread door_think();
	}
}
door_think()
{
   self.doormoving = false;
   self.doormodel = getent(self.target, "targetname");

   while(1)
   {
      self waittill("trigger");
      if(!self.doormoving)
      {   
         self thread door_move();
      }
   }
}
door_move()
{
	self maps\mp\_utility::triggerOff();
	self.doormoving = true;
	self.doormodel rotateyaw(self.count, 2, 0.5, 0.5);
	self.doormodel waittill("rotatedone");
	wait (60);
	self.doormodel rotateyaw((self.count * -1), 2, 0.5, 0.5);
	self.doormodel waittill("rotatedone");
	self maps\mp\_utility::triggerOn();
	self.doormoving = false;
}
Im not using it to open a door but the its the same thing just the hinge/origion is on the top of the brush, to swing on the hinge