ADDING OTHER CLASSES TO A SET SPECIES THROUGH EVENT HANDLER

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
HYDROSYNTH+077503
Posts: 12
Joined: Tue Aug 22, 2023 3:03 pm
Preferred Pronouns: He/Him
Graphics Processor: Not Listed

ADDING OTHER CLASSES TO A SET SPECIES THROUGH EVENT HANDLER

Post by HYDROSYNTH+077503 »

Hey Guys. One Question , If i wanted to add other classes(or Species) to my custom made Species. How , Through EVENT HANDLER,would i write down the Code on ZSCRIPT?
User avatar
Sir Robin
Posts: 529
Joined: Wed Dec 22, 2021 7:02 pm
Graphics Processor: Intel (Modern GZDoom)
Location: Medellin, Colombia

Re: ADDING OTHER CLASSES TO A SET SPECIES THROUGH EVENT HANDLER

Post by Sir Robin »

override WorldThingSpawned, - This is called for each actor spawned, during level load and throughout gameplay. The e.Thing will be the thing that spawned so you can check if it's something you want to set the species of and do it there.

Return to “Scripting”