Running a script on projectile's target
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Running a script on projectile's target
Hi, I have question about ACS. I have a projectile and I want it to run script with hitted actor as a activator. I tried some variants but nothing works so far. I tried bulletpuff but that don't work either. Anyone has some good idea how to do it? Thx
- Tapwave
- Posts: 2096
- Joined: Sat Aug 20, 2011 8:54 am
- Preferred Pronouns: No Preference
- Graphics Processor: nVidia with Vulkan support
Re: Running a script on projectile's target
Maybe some hacking around with GiveToTarget with an inventory item that activates a script?
Re: Running a script on projectile's target
Projectile's target is the shooter unfortunately. At least if I remember this correctly. But thx for the help anyway.terranova wrote:Maybe some hacking around with GiveToTarget with an inventory item that activates a script?
Re: Running a script on projectile's target
Cant it be a projectile with FORCEPAIN (or maybe its other name o.õ, cant look the wiki now), a custom damage and then a Pain.DAMAGE in the monsters of your wad? If you dont want the monsters to be in pain every time, just edit the pain state with no frames at all (time 0), just the commands.
- Tapwave
- Posts: 2096
- Joined: Sat Aug 20, 2011 8:54 am
- Preferred Pronouns: No Preference
- Graphics Processor: nVidia with Vulkan support
Re: Running a script on projectile's target
That would only work on monsters. If Drakon wants the activator to be any kind of actor, painstates isn't what you want.
Re: Running a script on projectile's target
I though about that but some of my monsters uses flag NOPAIN and I can't remove this flag without ruining them.Ravick wrote:Cant it be a projectile with FORCEPAIN (or maybe its other name o.õ, cant look the wiki now), a custom damage and then a Pain.DAMAGE in the monsters of your wad? If you dont want the monsters to be in pain every time, just edit the pain state with no frames at all (time 0), just the commands.
Sorry I didn't make it clear. I actually want it for monsters. I need it for poison based weapon so if enemy is hit by this projectile (or even bulletpuff) it will start script on such monster.terranova wrote:That would only work on monsters. If Drakon wants the activator to be any kind of actor, painstates isn't what you want.
- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: Running a script on projectile's target
Something that can't be done more simply with [wiki=Actor_properties#PoisonDamage]PoisonDamage[/wiki]?
Re: Running a script on projectile's target
Well I'm afraid that this will be the only solution. For regular poisons this shoul work fine. But I planned some special poisons that could slow down enemy or make them friendly for sime time... I guess I'll have to use this solution and use less complex poisonsNeuralStunner wrote:Something that can't be done more simply with [wiki=Actor_properties#PoisonDamage]PoisonDamage[/wiki]?
