A_PoisonBagInit
Jump to navigation
Jump to search
A_PoisonBagInit
(no parameters)
Basically equivalent to A_SpawnItem("PoisonCloud", 0, 28)
.
The only difference is that it also transfers the calling actor's target to the spawned poison cloud, which has in most circumstances no noticeable effect: said target will be considered to be responsible for the damage dealt by the poison cloud and this is important for the poison mushroom as its target at the moment of death will be whoever killed it, potentially resulting in monster infighting.
Note: nearly equivalent to A_SpawnItemEx("PoisonCloud", 0, 0, 28, 0, 0, 0, 0, SXF_TRANSFERPOINTERS)
Examples
See PoisonBag and ZPoisonShroom for examples.