Jump to content

API Question: CrewMan(type) [Solved]


ignatz

Recommended Posts

Hi, I want to edit addcrew.lua, so I can add Crewmember of any kind. (Yes, this had been done by a mod already, but without the use of specialized crewmember)

 

I also use this small project to get into coding mods. But I have one problem:

 

I found that I can create a CrewMember with CrewMan(type), but this only creates a basic CrewMan, how do I create one that is trainable? or even give him a level assigned?

 

Edit: Well never mind. I think i found it. Should be like:

 

CrewMan(type, isProfessional, level)

 

At least that works for me. Do someone want to see this as an actual mod?

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...