A_PoisonBagInit
Basically equivalent to A_SpawnItem("PoisonCloud", 0, 28)
.
A_PoisonBagInit
(no parameters)
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.
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.