Author |
Topic: how dow you add planes? |
COLMAC |
|
General Member Since: Sep 15, 2006 Posts: 914 Last: Jan 27, 2012 [view latest posts] |
|
|
|
COLMAC |
|
General Member Since: Sep 15, 2006 Posts: 914 Last: Jan 27, 2012 [view latest posts] |
|
|
Category: CoDWW MP Mapping Posted: Saturday, Mar. 26, 2011 02:46 pm |
|
all the maps with planes flying ove,r and not one person post ,
no tut for it in modsonline,
2 bad scripts in the forums that never got fix, or answered?
main()
{
level thread planes();
}
planes()
{
level.PlaneSpeed = 6.5;
bomber01 = getent ("bomber01","targetname");
bomber02 = getent ("bomber02","targetname");
bomber03 = getent ("bomber03","targetname");
temp = getent (bomber01.target,"targetname");
bomber01.dest = temp.origin;
bomber01.start = bomber01.origin;
bomber01 hide();
temp = getent (bomber02.target,"targetname");
bomber02.dest = temp.origin;
bomber02.start = bomber02.origin;
bomber02 hide();
temp = getent (bomber03.target,"targetname");
bomber03.dest = temp.origin;
bomber03.start = bomber03.origin;
bomber03 hide();
wait 120;
while (1)
{
bomber01 thread plane_flyby("squadron01_flyby");
wait .15;
bomber02 thread plane_flyby("squadron02_flyby");
wait .15;
bomber03 thread plane_flyby("squadron03_flyby");
wait 300;
}
}
plane_flyby(sound)
{
// If you specified a sound to play then play it
if (isdefined (sound))
self playsound (sound);
wait 2;
self show();
self moveto(self.dest, level.PlaneSpeed, 0.1, 0.1);
wait level.PlaneSpeed;
self hide();
self.origin = self.start;
}
needs all the start and end keys and values to work
main()
{
level thread planes();
}
planes()
{
level.PlaneSpeed = 3.5;
stuka1 = getent ("stuka1","targetname");
stuka2 = getent ("stuka2","targetname");
stuka3 = getent ("stuka3","targetname");
temp = getent (stuka1.target,"targetname");
stuka1.dest = temp.origin;
stuka1.start = stuka1.origin;
stuka1 hide();
temp = getent (stuka2.target,"targetname");
stuka2.dest = temp.origin;
stuka2.start = stuka2.origin;
stuka2 hide();
temp = getent (stuka3.target,"targetname");
stuka3.dest = temp.origin;
stuka3.start = stuka3.origin;
stuka3 hide();
wait 2;
while (1)
{
stuka1 thread plane_flyby("stuka_flyby");
wait .15;
stuka2 thread plane_flyby("stuka_flyby");
wait .15;
stuka3 thread plane_flyby("stuka_flyby");
wait 60;
}
}
plane_flyby(sound)
{
// If you specified a sound to play then play it
if (isdefined (sound))
self playsound (sound);
wait 15;
self show();
self moveto(self.dest, level.PlaneSpeed, 0.1, 0.1);
wait level.PlaneSpeed;
self hide();
self.origin = self.start;
}
same here need start, stop, values
and or
tut buy a good script er , fix the scripts to run on cod waw
|
|
|
|
COLMAC |
|
General Member Since: Sep 15, 2006 Posts: 914 Last: Jan 27, 2012 [view latest posts] |
|
|
|
EraVulg |
General Member Since: Mar 10, 2011 Posts: 25 Last: Mar 29, 2011 [view latest posts] |
|
|
Category: CoDWW MP Mapping Posted: Saturday, Mar. 26, 2011 05:08 pm |
|
COLMAC writes...Quote: these scripts give the map load a error
cant find script vehicle [(null)]
any ideas on whats wrong
key and values for this script?
It looks like you're trying to make the planes script_vehicles, make them script_models. |
|
|
|
COLMAC |
|
General Member Since: Sep 15, 2006 Posts: 914 Last: Jan 27, 2012 [view latest posts] |
|
|
Category: CoDWW MP Mapping Posted: Sunday, Mar. 27, 2011 03:55 pm |
|
ya ive tried both, if its a script_model it just hangs in air never moves
if script_vehice it errors
[img=" "]
ive used nods begin and end linked from plane, to begin, to, end
vehile_nodes all error in compile
i have scripts in raw/animscripts/traverse/_planes.gsc
and maps/mp/_planes.gsc
errors are:
cant find info for scriptvehicle [(null)] ,or
cannot cast udefined to string ,or
undefined is not a field object line 16
( bomber01.dest = temp.origin;)
|
|
|
|
EraVulg |
General Member Since: Mar 10, 2011 Posts: 25 Last: Mar 29, 2011 [view latest posts] |
|
|
|
COLMAC |
|
General Member Since: Sep 15, 2006 Posts: 914 Last: Jan 27, 2012 [view latest posts] |
|
|
|
dundy |
|
General Member Since: Dec 14, 2004 Posts: 768 Last: Nov 1, 2020 [view latest posts] |
|
|
|
Category: CoDWW MP Mapping Posted: Sunday, Mar. 27, 2011 06:38 pm |
|
|
|
|
|
COLMAC |
|
General Member Since: Sep 15, 2006 Posts: 914 Last: Jan 27, 2012 [view latest posts] |
|
|
|
COLMAC |
|
General Member Since: Sep 15, 2006 Posts: 914 Last: Jan 27, 2012 [view latest posts] |
|
|
|