Please or Register to create posts and topics.

rocket turret orientation

How do I make a rocket turret point in the direction I want it too after coming out of the ground?

I've tried rotating them, I've tried setting the Yaw value in entity properties, I've even tried enabling and disabling them at the start, but no matter what, they always come out pointing them same direction.

You could try setting up an npc_bullseye and an ai_relationship to make the Turret "Hate" the bullseye, and then delete it shortly after. I don't know if it would remain in that orientation though or just return to default.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.

The turret didn't point at the bullseye at all, even though I didn't remove it.

Did you setup the ai_relationship properly?

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.

Here's what I have

Key Values:
Name: relationship_3
Subject(s): npc_rocket_3
Target(s): bullseye_3
Disposition: Hate
Radius for subject: 0
Disposition Priority: 99
Start Active: Yes
Reciprocal: No

Inputs/Outputs:
none

Flags:
Notify subject of target's location (checked)
Notify target of subject's location (unchecked)

Are you triggering the relationship when you activate the Turret? You can't just place them, they have to be activated.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.

I tried the ApplyRelationship input and nothing happened

Try using a logic_auto and set it to OnMapLoad or whatever.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.

I tried both OnMapSpawn and OnLoadGame, and neither did anything.