Drofder's kryptonite
Moderator: Core Staff
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
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?:
I want to use an array of triggers, 1 on each car, so the player can unlink them self.

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;
}
funfair and a night version: funfair_night
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
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;
}
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;
}

Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
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
I really like your maps, Nightmare
....
So im waiting....


And Nightmares map still isn't released


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

I really like your maps, Nightmare

So im waiting....






yeh, we are almost done, luke is putting some "finishing touches" on the map so it should be ready soon.
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
Lol, luke is not answering me. I can't put my finishing touches to it.
Luke, give me the .maps
Luke, give me the .maps

Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Who is online
Users browsing this forum: No registered users and 3 guests