Page 1 of 1
Location of Pilot skills
Posted: Sun Apr 01, 2018 4:40 am
by 4n4rch1st
In the title.
Either I'm half blind (most likely possibility), or aliens have eaten my eyeball, because I can't seem to find where the pilot skills are stashed.
Re: Location of Pilot skills
Posted: Sun Apr 01, 2018 4:52 am
by Jumbocarrot0
Look at some pilot mods, although I did that and I can't seem to find it either sooo...
Re: Location of Pilot skills
Posted: Sun Apr 01, 2018 5:05 am
by 4n4rch1st
I did check pilot mods, and the ones I looked at just put the skills in the init file (the file that allows compatibility with the main mod manager).
Re: Location of Pilot skills
Posted: Sun Apr 01, 2018 5:36 am
by cannonfodder
Pilot skills are hardcoded, locked in C++. That isn't to say you can't make your own, it just means we have no existing examples to draw from. The existing pilot mod was made completely from scratch. You can put something like this anywhere to check a mech's pilot and do something if the pilot's name matches your custom pilot:
if _G[MyPawnName:GetPersonality()] == "MyPilotName" then
[do some cool stuff]
end
Re: Location of Pilot skills
Posted: Sun Apr 01, 2018 8:11 am
by 4n4rch1st
Dang. At least there's still a way to create new pilot skills...
Re: Location of Pilot skills
Posted: Sun Apr 01, 2018 8:43 pm
by cannonfodder
I was wrong actually, instead it’s this:
MyPawnName:GetPersonality() == "MyPilotName"
You don’t need the _G[ ]