Ray shoot task

Hi,

I’ve viewed this clip which shows how to create a shooting scene with a FP and an AI. I’ve done this exactly as shown, but the AI only turns around when ever I try to face it.

What could be the problem? The difference is the AI I have has a skeleton. I did try adding a steering brick and motion, but it doesn’t seek the FP. There is a navmesh, but even without that, the Ai still turns around.

Attachments



You should try to do it as simply as possible.

I can’t see how it isn’t simple.

How else using the bricks would the AI shoot at the player, only using the older method of a bullet firing from another layer, which according to the tutorial narrator is out dated.

I would not connect many actuators to one sensors.Because it will make it hard for you to understand what is going on.That simplifies it.

Well it is as shown. Why the AI doesn’t work as the tutorial explains is odd.

I tried out a separate file to do with hand carrying object animation, collision, but there is nothing on the video site on that alone.

So like you have an Arm which collides with an object, and the arm is animated to go down or something, and then carry the object.

There are good clips on how to obtain an object, but then remove it from the scene to the FP’s hand, like a glow stick.

How else using the bricks would the AI shoot at the player

a very basic setup:

ray sensor(property) true pulse, set to 60 or 120 to fire every sec/2 seconds when ray is positive
||
and
||
message

on the receiver or in this case the player:

message
||
and
||
property - remove hp

now your object can shoot and remove hp from the enemy/other object.

#edit
also look at your second screenshot, you use ray property target, but that property is placed on him, remove it place it on the object it need to hit.

The target is in the camera to target a cone on the AI. The bricks go on the AI skeleton or on the model itself?

Attachments


The bricks go on the ai skeleton.

edit: nvm.

Right okay, well yes they are on the skeleton.

The only alternative is the old method, bullet collide with the AI and removed, and then may be an add object put in. Like borncg youtube user who I first watched that method for creating a weapon.

Try that method.

As for a health bar, well one works, but the other doesn’t.

I may have to use a number health counter. I guess the old LIS mini game file you did should give me enough info on how to create a health counter.