Adding an empty to an object

Trying to get bullets to come from my drone, added an empty to add bullet object. However it’s the exact layout as the gun, but nothing happens.

What I found out is when you click the gun, the empties are actually part of the same logic brick as the gun.

On the drone I have the empty parented to the drone, but it doesn’t show the empty in the logic bricks. How can I add it like the gun has?




Hello
try to select it?..
Bye

Selecting it doesn’t do anything, it needs to be added into the drones logic bricks like the gun is

Select the GUN (RIGHT CLICK) then SHIFT+RCLICK the empty.
Check you have SEL checked in the logic panel.

Hmm still can’t get it to shoot

upload the blend…

www.rodgame.org/3D/fpsgame.blend

48 Hour Bump

Change the axis that the bullet moves along.

Tried and still no bullet shows

it does for me…
Make the sensor in the empty an always…

It’s already an always and it does nothing, no bullets shoot. You are looking at the drone right, and not the gun?

sorry, i meant always True Pulse.

Thank you, it shoots, but it’s a constant string of bullets, after all of them shoot in a line, it freezes and they just float in the air.
I tried adding a 60 frame delay so it shoots more like a pistol, but it only delays the very first shot, and then it shoots 100 at once.

You want a “one shoot/bullet” action?
Well, try to disable the “true” pulse mode and set f:0, then select the bullet object and disable the “true” pulse mode!
Bye

I mean multiple bullets, but one per second, like boom…boom…boom… and not boom boom boom

Well, a way to obtain that behaviour, maybe, is, that when the Space bar key is pressed the “state” change, ex:
Keyboard Sensor - Space bar key -> AND -> Edit Object Actuator - Add Object
-> State Actuator - Copy State - 2
In State 2
Delay Sensor - 1or other -> AND -> State Actuator - Copy State -1

Bye

Delay with REP is working, but the thing won’t follow me, shoots one direction the whole time. I guess I will figure it out by playing with it. Might need a python script.