Smart Targeter

Archive of the old editing forum
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.
Locked
Kagur
Posts: 165
Joined: Fri Mar 14, 2014 12:40 am

Smart Targeter

Post by Kagur »

I'm trying to determine a method of having projectiles and monsters check their target and identify specific regions on the target's body like the hands, feet, torso, shoulders (which would be set as user variable offset values on the target actors spawn state) and then have a workable way to apply those offsets as x,y,z coordinates, on functions like A_custommissile and A_customrail attack. Also the A_warp function.

Lastly, I was hoping to know if its possible for puff actors to give inventory items to their victim actors/targets.

Any ideas?

Thank you
User avatar
Mikk-
Posts: 2274
Joined: Tue Jun 30, 2009 1:31 pm

Re: Smart Targeter

Post by Mikk- »

For the second one, yes you can use [wiki]Actor_Flags#HITTARGET[/wiki] and [wiki]A_GiveInventory[/wiki] using something like A_GiveInventory("Item",1,AAPTR_TARGET)
Kagur
Posts: 165
Joined: Fri Mar 14, 2014 12:40 am

Re: Smart Targeter

Post by Kagur »

Thanks for the response but I realize that there are probably engine bugs occurring with attempts here so I will report this to DRD.
Locked

Return to “Editing (Archive)”