That did it. Thank you so much!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages1
#1
Help / Re: How to differentiate between mechanoids and other pawns in C#?
June 25, 2023, 06:04:52 PM #2
Help / How to differentiate between mechanoids and other pawns in C#?
June 25, 2023, 04:11:57 PM
After following the plague gun tutorial, I changed the Hediff to anesthesia to effectively make a stun gun similar to those in just about any sci-fi show in existence.
This works rather well, but there is one problem.
It works on mechanoids as well.
Now, while seeing a mechanoid get downed due to being anesthetized is rather entertaining, it's also not at all the functionality I want as a part of the mod.
So how could I tell the projectile I'm using to not affect pawns based on their type/verbs/race/faction etc..?
This works rather well, but there is one problem.
It works on mechanoids as well.
Now, while seeing a mechanoid get downed due to being anesthetized is rather entertaining, it's also not at all the functionality I want as a part of the mod.
So how could I tell the projectile I'm using to not affect pawns based on their type/verbs/race/faction etc..?
Pages1