Need help with rotating script.
Moderator: Core Staff
- 
				Luke
- Past/Inactive Team Member 
- Posts: 1774
- Joined: May 31st, 2005, 12:42 am
- Location: Cornwall, UK
I only know a way to do it if they all do the same thing. Maybe Drofder can help, as I don't know if/how you can make an array with things doing differen't things.
			
			
									
									Watch this before posting a question: http://www.albinoblacksheep.com/flash/posting.php
						- 
				Coontang  
- CJ G0D! 
- Posts: 1797
- Joined: March 4th, 2007, 3:48 pm
- Location: Painting by numbers
- 
				Luke
- Past/Inactive Team Member 
- Posts: 1774
- Joined: May 31st, 2005, 12:42 am
- Location: Cornwall, UK
Post the script
			
			
									
									Watch this before posting a question: http://www.albinoblacksheep.com/flash/posting.php
						- 
				Coontang  
- CJ G0D! 
- Posts: 1797
- Joined: March 4th, 2007, 3:48 pm
- Location: Painting by numbers
Full:
as you can tell vents is the second vent.
			
			
									
									Code: Select all
main() 
{ 
maps\mp\_load::main(); 
thread vent(); 
} 
vent() 
{ 
vent = getent ("vent","targetname"); 
vent_trig = getent ("vent_trig","targetname"); 
while (1.5) 
{ 
vent_trig waittill ("trigger"); 
vent rotateto ((0, 0, 170), 1.5); //this will rotate 170 degrees on the y axis in 1.5 second 
} 
} 
vents() 
{ 
vents = getent ("vents","targetname"); 
vents_trig = getent ("vents_trig","targetname"); 
while (1.5) 
{ 
vents_trig waittill ("trigger"); 
vents rotateto ((0, 0, 90), 1.5); //this will rotate 90 degrees on the y axis in 1.5 second 
} 
} 

JDogg: 'I have a video of me pissing, wanna see?'
- 
				Luke
- Past/Inactive Team Member 
- Posts: 1774
- Joined: May 31st, 2005, 12:42 am
- Location: Cornwall, UK
Code: Select all
main()
{
maps\mp\_load::main();
thread vent();
thread vents();
}
vent()
{
vent = getent ("vent","targetname");
vent_trig = getent ("vent_trig","targetname");
while(1)
{
vent_trig waittill ("trigger");
vent rotateto ((0, 0, 170), 1.5); //this will rotate 170 degrees on the z axis in 1.5 second
}
}
vents()
{
vents = getent ("vents","targetname");
vents_trig = getent ("vents_trig","targetname");
while(1)
{
vents_trig waittill ("trigger");
vents rotateto ((0, 0, 90), 1.5); //this will rotate 90 degrees on the z axis in 1.5 second
}
} Watch this before posting a question: http://www.albinoblacksheep.com/flash/posting.php
						- 
				Coontang  
- CJ G0D! 
- Posts: 1797
- Joined: March 4th, 2007, 3:48 pm
- Location: Painting by numbers
- 
				waywaaaard  
- Core Staff 
- Posts: 2214
- Joined: February 6th, 2006, 3:18 pm
- Location: Germany/Bayern
text to the user or text like position saved?
			
			
									
									THAT HANDS WERE NOT TRACED!
visit my blog: Link
						visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality
- 
				waywaaaard  
- Core Staff 
- Posts: 2214
- Joined: February 6th, 2006, 3:18 pm
- Location: Germany/Bayern
when for that u need to use a variable to get the user who enabled the trigger
u should use that example
			
			
									
									Code: Select all
yourtrigger waittill ("trigger",user);
user iprintlnbold ("Your text");THAT HANDS WERE NOT TRACED!
visit my blog: Link
						visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality
- 
				Coontang  
- CJ G0D! 
- Posts: 1797
- Joined: March 4th, 2007, 3:48 pm
- Location: Painting by numbers
- 
				waywaaaard  
- Core Staff 
- Posts: 2214
- Joined: February 6th, 2006, 3:18 pm
- Location: Germany/Bayern
http://codjumper.com/forums/viewtopic.php?t=4774
have a look at this - nightmare made this tutorial for me and it works 100% for cod2
			
			
									
									have a look at this - nightmare made this tutorial for me and it works 100% for cod2
THAT HANDS WERE NOT TRACED!
visit my blog: Link
						visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality
- 
				Nightmare  
- Core Staff 
- Posts: 2688
- Joined: January 12th, 2006, 10:09 pm
- Contact:
I am always willing to make tutorials, just ask. 
			
			
									
									
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]
- 
				Coontang  
- CJ G0D! 
- Posts: 1797
- Joined: March 4th, 2007, 3:48 pm
- Location: Painting by numbers
could you make a tutorial or something for some water feature, like a fountain (because my map contains like a little park thing)
EDIT:
Im up to the part where you set the values in the csv and im totally lost how do i do this?
 how do i do this?
			
			
									
									EDIT:
Lev!athan wrote:http://codjumper.com/forums/viewtopic.php?t=4774
have a look at this - nightmare made this tutorial for me and it works 100% for cod2
Im up to the part where you set the values in the csv and im totally lost
 how do i do this?
 how do i do this?
JDogg: 'I have a video of me pissing, wanna see?'

 if i run into any problems il give you a shout.
 if i run into any problems il give you a shout. 