[Tutor] Re: Re: One object looking at another at all times

Rick Christian rc@mlode.com
Wed, 29 Mar 2000 14:25:41 -0800


This is a multi-part message in MIME format.

------=_NextPart_000_0009_01BF998A.A9532BC0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Here is the script rewriten:

# Tank Turret

def ontimechanged():

    Target =3D doc.Object("Target")    # The Target is a little red cube

    TankTurret =3D doc.Object("TankTurret")    # This line is here for =
later use

    yrot =3D Target.Position[0]

    me.Direction =3D (0,0,yrot)

# End of script



Here is the error I get, what does it mean?:

SystemErrorNULL result without error in call_object:=20


------=_NextPart_000_0009_01BF998A.A9532BC0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DCourier size=3D2>
<P>Here is the script rewriten:</P><FONT color=3D#008000 face=3DCourier =
size=3D2>
<P># Tank Turret</FONT><FONT color=3D#000000 face=3DCourier =
size=3D2></FONT></P><FONT=20
color=3D#0000ff face=3DCourier size=3D2>
<P>def</FONT><FONT color=3D#000000 face=3DCourier size=3D2> =
ontimechanged():</P>
<P>&nbsp;&nbsp;&nbsp; Target =3D doc.Object(</FONT><FONT color=3D#b400b4 =

face=3DCourier size=3D2>&quot;Target&quot;</FONT><FONT color=3D#000000 =
face=3DCourier=20
size=3D2>)&nbsp;&nbsp;&nbsp; # The Target is a little red cube</P>
<P>&nbsp;&nbsp;&nbsp; TankTurret =3D doc.Object(</FONT><FONT =
color=3D#b400b4=20
face=3DCourier size=3D2>&quot;TankTurret&quot;</FONT><FONT =
color=3D#000000=20
face=3DCourier size=3D2>)&nbsp;&nbsp;&nbsp; # This line is here for =
later use</P>
<P>&nbsp;&nbsp;&nbsp; yrot =3D Target.Position[</FONT><FONT =
color=3D#969600=20
face=3DCourier size=3D2>0</FONT><FONT color=3D#000000 face=3DCourier =
size=3D2>]</P>
<P>&nbsp;&nbsp;&nbsp; me.Direction =3D (</FONT><FONT color=3D#969600 =
face=3DCourier=20
size=3D2>0</FONT><FONT color=3D#000000 face=3DCourier =
size=3D2>,</FONT><FONT=20
color=3D#969600 face=3DCourier size=3D2>0</FONT><FONT color=3D#000000 =
face=3DCourier=20
size=3D2>,yrot)</FONT></P>
<P># End of script
<P>&nbsp;</P>
<P>Here is the error I get, what does it mean?:</P>
<P>SystemErrorNULL result without error in call_object:=20
</P></FONT></DIV></BODY></HTML>

------=_NextPart_000_0009_01BF998A.A9532BC0--