Page 3 of 4

Posted: August 27th, 2006, 2:14 am
by Drofder2004
Just remove the "unlink"...

Posted: August 27th, 2006, 4:47 am
by Luke
Yep, had to remove the end_count too. Well its working as far as making the player stick to the cars non stop, but i'm not sure how to incorporate a trigger into the code to make the player unlink :(

does it need to be added to this part?:

Code: Select all

run()
{
	
self.finish = false;
self.oldorigin = self.origin;
car = getentarray("car","targetname");

for(i=0;i<car.size;i++)
{
	bar[i] = getent(car[i].target,"targetname");
}


for(;;)
{
if(self.finish == true)
	break;
self.origin = bar[0].origin - (0,0,100);
self linkto(bar[0]);
wait 0.1;
}
self.origin = self.oldorigin;
}
I want to use an array of triggers, 1 on each car, so the player can unlink them self.

Posted: August 27th, 2006, 2:19 pm
by Pedsdude
What's the map going to be called? (sorry if you posted it already and I forgot)

Posted: August 27th, 2006, 2:23 pm
by Nightmare
funfair and a night version: funfair_night

Posted: August 27th, 2006, 2:23 pm
by Drofder2004
Yep, that is the part.

if(self.finish == true)
break;

That is currently what ends the infinite loop.
You may simply want to do...

if(self useButtonPressed())
{
self unlink();
break;
}

Posted: August 27th, 2006, 3:06 pm
by Luke
Drofder2004 wrote:Yep, that is the part.

if(self.finish == true)
break;

That is currently what ends the infinite loop.
You may simply want to do...

if(self useButtonPressed())
{
self unlink();
break;
}
works perfectly thanks :D

Posted: August 27th, 2006, 9:03 pm
by Moriar
Well, its now almost end of the weekend :(
And Nightmares map still isn't released :( or it is, and not on the codjumper website :(
If so, can you tell me the link?
If its not released yet, please tell me when it will be released, or send some screenshots 8)

I really like your maps, Nightmare 8) ....
So im waiting.... 8)

8) 8) 8) 8) 8)

Posted: August 27th, 2006, 10:00 pm
by Nightmare
yeh, we are almost done, luke is putting some "finishing touches" on the map so it should be ready soon.

Posted: August 27th, 2006, 10:02 pm
by Luke
I could spend all day doing that, but you want it done quick :P

Posted: August 28th, 2006, 4:10 pm
by Moriar
OK....And Luke?


MAKE SURE YOU DONT FORGET some Finishing Touches :wink:

Im really looking forward to it :D

Posted: August 28th, 2006, 4:40 pm
by teebag
Pls add a river with fishes in it!! (L) fishing (L)

Posted: August 28th, 2006, 8:40 pm
by Nightmare
Lol, luke is not answering me. I can't put my finishing touches to it.
Luke, give me the .maps :P

Posted: August 28th, 2006, 9:56 pm
by Luke
Sorry, had stuff to attend to.

Posted: August 28th, 2006, 11:10 pm
by Luke
Don't edit my posts every again! or u will find out what owned means :P

Posted: August 28th, 2006, 11:58 pm
by Drofder2004
Luke wrote:Don't edit my posts every again! or u will find out what owned means :P
who and lol :P