got everything working, but bot plants the trap on raptor no matter if it's dead or alive. so in some cases I have a situation where the trap is placed and next step would be to collect the quest item, which simply does not exist.
Anyway I've figured out how to do a dead or alive check, so the problem is partially solved.. But the check for object existence is still very important for my profile development.
Plus it would be a much more stable solution for this particular quest