Jump to content

[0.26.1] Headhunter script - Player().craftFaction is nil


Rinart73

Recommended Posts

Avorion: 0.26.1

 

Script "data\scripts\player\events\headhunter.lua"  - function "HeadHunter.findNearbyEnemyFaction"

"Player().craftFaction" is occasionally "nil", this breaks the script.

 

I suggest to replace line 106:

local player = Player().craftFaction

with

local player = Player()
player = player.craftFaction or player

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...