So, I've tried making a "friendly" monster be targeted by other monsters from other species to simulate an Ally team for the player, first I did with CheckProximity but the problem is that it doesn't verify species, he "looks" all around and finally, I don't know if there is another way of setting the target without this function in zscript...since it has a flag that makes it so(CPXF_SETTARGET)
I do think it I have to do something with GetSpecies() function in zscript to set it's target, but I didn't find anything relating to setting the actor's target, like another function.
If you are curious to why I am doing this, let's just say I've run into some problems regarding friendly followers with the +FRIENDLY and -DONTFOLLOWPLAYERS flags...
PS.: For know the sound check is not needed, only for the player, and I do believe I can do it with A_AlertMonsters
PS 2.: Also I trying to do this without ACS, just for better optimization
PS 3.: The player will be from the same species of the "friends" to be targeted by the other monsters from other species, mainly to give it an equal treatment, as if the "friend" monster is another player.
Thanks in Advance for anyone.
[Zscript] "friendly" monsters target other monster species
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
-
- Posts: 34
- Joined: Fri Oct 07, 2022 8:55 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia (Modern GZDoom)
-
- Posts: 34
- Joined: Fri Oct 07, 2022 8:55 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia (Modern GZDoom)
Re: [Zscript] "friendly" monsters target other monster species
Managed to do it, I had to rewrite some functions regarding it...anyway, if you want to know anything else about this, just PM me, thanks even for those who just viewed it