move to object

Blitz3D Forums/Blitz3D Programming/move to object

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

the entitydistance check doesn't seem to work right... The problem is that the green cube to show me the destination is still there, and the job remains the same, which gives me the idea that it is not working.

In the following example, which I have just done in the background, the movement simply does not occur.

			if entitydistance(s\picker,s\dstThing) > 1			
				pointentity s\picker,s\dstthing
        		MoveEntity S\Picker,0,0,1
        	else
        		hideentity s\dstthing
				
				s\dstx = s\x
				s\dsty = s\y
				s\dstz = s\z
				        	
				s\job = false
			endif