Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to get AI to respect prop collisions #32

Open
GeckoEidechse opened this issue Aug 3, 2023 · 0 comments
Open

Document how to get AI to respect prop collisions #32

GeckoEidechse opened this issue Aug 3, 2023 · 0 comments
Labels
moddingdocs Makes changes to the ModdingDocs part of the docs

Comments

@GeckoEidechse
Copy link
Member

Mentioned by @Zanieon in contributor channel on Northstar Discord:

Public utility, if you want the AI of the game to respect the collision of a prop, spawn it as a prop_script instead of dynamic and set these functions:

ToggleNPCPathsForEntity( prop, false )
prop.SetAIObstacle( true )
prop.SetScriptPropFlags( SPF_DISABLE_CAN_BE_MELEED | SPF_BLOCKS_AI_NAVIGATION )

used this shit to finally get rid of AI clipping into the Harvester and Titans trying to melee it

https://discord.com/channels/920776187884732556/936105663942246410/1136656955486781450

@GeckoEidechse GeckoEidechse transferred this issue from R2Northstar/ModdingDocs Sep 19, 2024
@GeckoEidechse GeckoEidechse added the moddingdocs Makes changes to the ModdingDocs part of the docs label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
moddingdocs Makes changes to the ModdingDocs part of the docs
Projects
Status: No status
Development

No branches or pull requests

1 participant