Yup, you need the cylinder mesh to be pointing along the z axis initially before you point it as pointentity aligns on the z axis.
Set up the beam entity like this ...
Beam = createcylinder()
Rotatemesh Mesh , 90, 0, 0
Positionmesh Beam,0,0,1
Scalemesh Beam,1,1,.5
Then ...
Pointenity Beam , Target
Scaleentity beam , 1 , 1, entitydistance( Beam , Target )
Note that Scaling on the Y axis is wrong ... should be the z axis.
Stevie
Set up the beam entity like this ...
Beam = createcylinder()
Rotatemesh Mesh , 90, 0, 0
Positionmesh Beam,0,0,1
Scalemesh Beam,1,1,.5
Then ...
Pointenity Beam , Target
Scaleentity beam , 1 , 1, entitydistance( Beam , Target )
Note that Scaling on the Y axis is wrong ... should be the z axis.
Stevie