Need help with firing bullets B4 I go CRAZY!!!

Blitz3D Forums/Blitz3D Beginners Area/Need help with firing bullets B4 I go CRAZY!!!

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.

W
 #1
Okkay I am trying to get ahold of this concept guys.

-This is what I got soo far, and it is still non responsive, can anyone tell my why or help me out at all??

;some code of mine ======================================
Function CheckWeapon()

pick = CameraPick(cam\model,GW,GH)


If MouseHit(1)
hole = CopyEntity(b\holes,holes)
PositionEntity holes,PickedX(),PickedY(),PickedZ(),True
PositionEntity hole,PickedX(),PickedY(),PickedZ(),True
AlignToVector hole,-PickedNX(),-PickedNY(),-PickedNZ(),3
MoveEntity hole,0,0,-0.05
EndIf

If CountChildren(holes) > 200 Then
FreeEntity GetChild(holes,1)
EndIf

End Function
;========================================================

In the initialization section I did this..

;=======================================
ScaleEntity b\holes,.05,.05,.05
Global holes = CreatePivot()

;=========================================

Oh GW and GH is the graphics width and height