[DECORATE] Summoned/Spawned monster to share player's color

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
Disguise
Retired Staff / Community Team Member
Posts: 359
Joined: Thu May 24, 2012 10:00 pm
Location: Romania
Contact:

[DECORATE] Summoned/Spawned monster to share player's color

#1

Post by Disguise » Wed Jan 18, 2017 10:11 pm

How do I make monsters summoned/spawned by a player have the same color as them? (Like in Stronghold, when you place sentries and spawn marines)

Konda
Forum Regular
Posts: 487
Joined: Thu Jun 07, 2012 5:22 pm

[DECORATE] Re: Summoned/Spawned monster to share player's color

#2

Post by Konda » Wed Jan 18, 2017 10:28 pm

When using A_SpawnItemEx, use the flag SXF_TRANSFERTRANSLATION
https://zdoom.org/wiki/A_SpawnItemEx

User avatar
Disguise
Retired Staff / Community Team Member
Posts: 359
Joined: Thu May 24, 2012 10:00 pm
Location: Romania
Contact:

[DECORATE] Re: Summoned/Spawned monster to share player's color

#3

Post by Disguise » Wed Jan 18, 2017 11:23 pm

Alright, thanks! :)

Post Reply