whats wrong with this code my map doesnt load it freezes

Have questions about CoD/UO mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Pedsdude
Site Admin
Site Admin
Posts: 15909
Joined: October 15th, 2004, 7:18 pm
Location: UK

Post by Pedsdude » September 1st, 2007, 11:18 pm

Nightmare wrote:no this is what I meant. :P

Code: Select all

main()

{
thread dd_zelda1();
thread dd_zelda2();
thread dd_zelda3();
}

dd_zelda1()
{
dd_zelda1 = getent("dd_zelda1","targetname");
while (1)
{
dd_zelda1 rotateyaw(-360, 5);
dd_zelda1 waittill("rotatespin");
}
}

dd_zelda2()
{
dd_zelda2 = getent("dd_zelda2","targetname"); 
while (1)
{
dd_zelda2 rotateyaw(-360, 5);
dd_zelda2 waittill("rotatespin");
}
}

dd_zelda3()
{
dd_zelda3 = getent("dd_zelda3","targetname"); 
while (1)
{
dd_zelda3 rotateyaw(-360, 5);
dd_zelda3 waittill("rotatespin");
}
}
Why would he have a trigger if he doesn't want to use it?
Image
Image

Deadly
CJ Fan
CJ Fan
Posts: 138
Joined: July 14th, 2007, 8:53 pm
Location: New Jersey
Contact:

Post by Deadly » September 2nd, 2007, 3:48 am

acualy i want the fans to be rotating when u spawn in the map and then when you get to the trigger they deactivate when u hit the trigger, and for what level it is. you will have to wait. :wink:
Image

User avatar
Nightmare
Core Staff
Core Staff
Posts: 2688
Joined: January 12th, 2006, 10:09 pm
Contact:

Post by Nightmare » September 2nd, 2007, 4:06 am

ah, then if you want that to happen you will have to make something completely different. Let me work on the script and I will update it 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]

Pedsdude
Site Admin
Site Admin
Posts: 15909
Joined: October 15th, 2004, 7:18 pm
Location: UK

Post by Pedsdude » September 4th, 2007, 12:11 am

In future, make sure you explain what you're trying to do instead of just saying it doesn't work - we can help you more that way ;)
Image
Image

Deadly
CJ Fan
CJ Fan
Posts: 138
Joined: July 14th, 2007, 8:53 pm
Location: New Jersey
Contact:

Post by Deadly » September 4th, 2007, 12:17 am

lol ok.
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 40 guests