Summoning A ZScript class that spawns makes it +FRIENDLY !
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Summoning A ZScript class that spawns makes it +FRIENDLY !
A oddity I found is that using the console command "Summon" with a ZScript class that spawns an enemy causes it to be +FRIENDLY. To test just load the attached file and summon "D2T' or "Doom2Test" (with DOOM2.wad) and a boss cube will spawn a +FRIENDLY. included a map that shows that Thing_Projectile() doesn't have this behavior! Also, The Cacodemon is big and doesn't spawn every time though!
- Attachments
-
- MAP01.zip
- (992 Bytes) Downloaded 17 times
-
- Posts: 4949
- Joined: Sun Nov 14, 2010 12:59 am
Re: Summoning A ZScript class that spawns makes it +FRIENDLY
Since you didn't pass the SXF_ORIGINATOR flag in the A_SpawnItemEx call, the player is considered the spawning actor (the "originator"), not the projectile itself. Monsters spawned by players are friendly.