ziggi / FCNPC

FCNPC - Fully Controllable NPC
Apache License 2.0
131 stars 30 forks source link

Disable damage possible? #256

Closed Awide closed 2 years ago

Awide commented 2 years ago

Is it possible to disable/prevent damage done by FCNPC? Setting the player and the NPC into the same team does not seem to work. I want to use custom damage values with a custom "fake" death system.

ziggi commented 2 years ago

Where you set the team for the NPC? I think it should work. Also you can return 0 in OnWeaponShot to prevent sending bullet.

Awide commented 2 years ago

Where you set the team for the NPC? I think it should work. Also you can return 0 in OnWeaponShot to prevent sending bullet.

The team didn't work, but returning 0 in OnWeaponShot did! Thank you ziggi!

ziggi commented 2 years ago

Try to set the team in FCNPC_OnCreate.