And your new create arrow code goes as follows
Function create_bullet(gun_entity)
b.bullet=New bullet
temp_x=EntityX(gun_entity,True)
temp_y=EntityY(gun_entity,True)
temp_z=EntityZ(gun_entity,True)
b\entity=CopyEntity(bolt) ; copy the main bullet entity , into the type object
b\pivot=CreatePivot()
PositionEntity b\entity,temp_x,temp_y,temp_z
EntityType b\entity,2
RotateEntity b\entity,EntityPitch(gun_entity,True),EntityYaw(gun_entity,True),0
PositionEntity b\pivot,temp_x,temp_y,temp_z
b\range=300 ; the range of the bullets
b\speed=18; the speed of the bullets
End Function
tadaaaaaaaaaaaa
Function create_bullet(gun_entity)
b.bullet=New bullet
temp_x=EntityX(gun_entity,True)
temp_y=EntityY(gun_entity,True)
temp_z=EntityZ(gun_entity,True)
b\entity=CopyEntity(bolt) ; copy the main bullet entity , into the type object
b\pivot=CreatePivot()
PositionEntity b\entity,temp_x,temp_y,temp_z
EntityType b\entity,2
RotateEntity b\entity,EntityPitch(gun_entity,True),EntityYaw(gun_entity,True),0
PositionEntity b\pivot,temp_x,temp_y,temp_z
b\range=300 ; the range of the bullets
b\speed=18; the speed of the bullets
End Function
tadaaaaaaaaaaaa