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
-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