Solarium228 Posted May 14, 2022 Share Posted May 14, 2022 Tell me please: how do I check the race of creatures and add items to the level lists depending on the race? Is this design suitable? Link to comment Share on other sites More sharing options...
LarannKiar Posted May 14, 2022 Share Posted May 14, 2022 (edited) For race check, mostly yes. But don't use ' ' or : in the script. Function CheckRace(Actor akCreatureRef) Race myActorsRace = akCreatureRef.GetRace() If myActorsRace If myActorsRace == MoleratRace Debug.Notification("akCreatureRef is a Mole Rat") ElseIf myActorsRace == DeathclawRace Debug.Notification("akCreatureRef is a Deathclaw") ElseIf myActorsRace == CatRace || myActorsRace == AlienRace Debug.Notification("akCreatureRef is either a Cat or an Alien.") Else Debug.Notification("akCreatureRef is not a Mole Rat, not a Deathclaw, not a Cat and not an Alien either but has Race.") EndIf Else Debug.Notification("Error: myActorsRace is None. akCreatureRef has no Race.") EndIf EndFunction Edited May 14, 2022 by LarannKiar Link to comment Share on other sites More sharing options...
SKKmods Posted May 14, 2022 Share Posted May 14, 2022 Dont forget to define the race lookup properties ! Link to comment Share on other sites More sharing options...
Solarium228 Posted May 14, 2022 Author Share Posted May 14, 2022 Thank you both very much. Link to comment Share on other sites More sharing options...
Recommended Posts