JACoders / OpenJK

Community effort to maintain and improve Jedi Academy (SP & MP) + Jedi Outcast (SP only) released by Raven Software
GNU General Public License v2.0
2.04k stars 615 forks source link

Change NPC class via script? #737

Open mrwonko opened 9 years ago

mrwonko commented 9 years ago

As asked on JKHub - would it be possible to change an NPC's class using icarus? I'd have to take a look; if it's just a matter of changing an enum field in the NPC data it should be simple, unless that's not saved.

ensiform commented 9 years ago

This sounds like something which could end up being problematic very easily. The class is best set only on spawn because of precaching and whatever else must happen upon class init.

mrwonko commented 9 years ago

Ah, shame. I may still look into it, but it's probably not (easily) possible then.

Maybe write so on JKHub?