| Author |
Topic: A Moving boat? |
| raymens |
General Member Since: Jul 3, 2005 Posts: 198 Last: Aug 22, 2008 [view latest posts] |
|
|
|
Category: CoD Mapping Posted: Friday, Oct. 7, 2005 05:33 pm |
 |
hi
i know that it is possible to let a boat move from a location to another location with a trigger use.
but does someone can help me with the script i am completely noob with scripting.
plz help me ![[casanova]](images/BBCode/smilies/casanova.gif) |
|
|
|
| batistablr |
 |
Preferred PLUS Member Since: Jul 13, 2005 Posts: 2066 Last: Dec 23, 2015 [view latest posts] |
|
|
 |
 |
|
|
| raymens |
General Member Since: Jul 3, 2005 Posts: 198 Last: Aug 22, 2008 [view latest posts] |
|
|
|
Category: CoD Mapping Posted: Saturday, Oct. 8, 2005 10:49 am |
 |
this is my script i use , but it is all the time crashing. Bad syntax error.
main()
{
thread boat_slider ();
}
boat_slider()
{
boat=getent("ship1","targetname");
trig=getent("ship1switch","targetname");
while(1)
{
trig waittill ("trigger");
boat movez (-276,5,1,1);
boat waittill ("movedone");
}
{
thread boat_mover ();
}
boat_mover()
boat=getent("ship1","targetname");
trig=getent("ship1release","targetname");
while(1)
{
trig waittil ("trigger");
boat movez (-276,5,1,1);
boat waittill ("movedone");
}
}
![[banghead]](images/BBCode/smilies/banghead.gif) ![[cry]](images/BBCode/smilies/cry.gif) ![[crazy]](images/BBCode/smilies/crazy.gif) ![[confused]](images/BBCode/smilies/confused.gif) |
|
|
|
| The_Caretaker |
General Member Since: Jun 8, 2004 Posts: 11625 Last: Jul 7, 2009 [view latest posts] |
|
|
|
|
| raymens |
General Member Since: Jul 3, 2005 Posts: 198 Last: Aug 22, 2008 [view latest posts] |
|
|
|
Category: CoD Mapping Posted: Saturday, Oct. 8, 2005 01:48 pm |
 |
this is my script now: it doesnt work 2
main()
{
thread ship1_release ();
}
ship1_release()
{
boat=getent("ship1","targetname");
trig=getent("ship1switch","targetname");
while(1)
{
trig waittill ("trigger");
boat movez ("-276,2,1,1");
boat waittill ("movedone");
thread ship1_beforerotate();
}
ship1_beforerotate()
{
boat movey ("250,5,1,1");
boat waittill ("movedone");
thread ship1_rotate();
}
ship1_rotate()
{
boat rotateto ( (0, 0, 90), 1);
boat waittill ("rotatedone");
}
}
plz tell me what is wrong ![[sad]](images/BBCode/smilies/sad.gif) |
|
|
|
| The_Caretaker |
General Member Since: Jun 8, 2004 Posts: 11625 Last: Jul 7, 2009 [view latest posts] |
|
|
|
|
| raymens |
General Member Since: Jul 3, 2005 Posts: 198 Last: Aug 22, 2008 [view latest posts] |
|
|
|
Category: CoD Mapping Posted: Saturday, Oct. 8, 2005 04:28 pm |
 |
it still doesnt work :( ![[cry]](images/BBCode/smilies/cry.gif) ![[banghead]](images/BBCode/smilies/banghead.gif) ![[confused]](images/BBCode/smilies/confused.gif)
i have this now :
Quote: main()
{
thread ship1_release ();
}
ship1_release()
{
boat=getent("ship1","targetname");
trig=getent("ship1switch","targetname");
while(1)
{
trig waittill ("trigger");
boat movez (-276,2,1,1);
boat waittill ("movedone");
thread ship1_beforerotate()
}
ship1_beforerotate()
{
boat movey (250,5,1,1);
boat waittill ("movedone");
thread ship1_rotate();
}
ship1_rotate()
{
boat rotateto ( (0, 0, 90), 1);
boat waittill ("rotatedone");
}
plz help me, isnt there anybody who can fix this horrible problem ![[casanova]](images/BBCode/smilies/casanova.gif) |
|
|
|
| The_Caretaker |
General Member Since: Jun 8, 2004 Posts: 11625 Last: Jul 7, 2009 [view latest posts] |
|
|
|
|
| raymens |
General Member Since: Jul 3, 2005 Posts: 198 Last: Aug 22, 2008 [view latest posts] |
|
|
|
Category: CoD Mapping Posted: Saturday, Oct. 8, 2005 05:05 pm |
 |
it says bad syntax line 13
{
plz help me ![[cry]](images/BBCode/smilies/cry.gif) |
|
|
|
| RRRScorpion |
 |
General Member Since: Feb 2, 2004 Posts: 169 Last: Dec 3, 2005 [view latest posts] |
|
|
|
Category: CoD Mapping Posted: Saturday, Oct. 8, 2005 08:10 pm |
 |
What Ct keeps trying to say to you is -
Code:
main()
{
thread ship1_release ();
}
ship1_release()
{
boat=getent("ship1","targetname");
trig=getent("ship1switch","targetname");
while(1)
{
trig waittill ("trigger");
boat movez (-276,2,1,1);
boat waittill ("movedone");
thread ship1_beforerotate()
}
}
ship1_beforerotate()
{
boat movey (250,5,1,1);
boat waittill ("movedone");
thread ship1_rotate();
}
ship1_rotate()
{
boat rotateto ( (0, 0, 90), 1);
boat waittill ("rotatedone");
}
Spot the difference?
![[cool]](images/BBCode/smilies/cool.gif) |
 |
|
|
|
|
mp_TempleCall of Duty: Mods: Multiplayer (624.12Kb)
|