Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script: Using getHull() on stations returns nil #63

Closed
lunerfox opened this issue Dec 15, 2015 · 1 comment
Closed

Script: Using getHull() on stations returns nil #63

lunerfox opened this issue Dec 15, 2015 · 1 comment
Labels

Comments

@lunerfox
Copy link

Working on a scenario where I wanted to trigger a message when a station's Hull is below a certain threshold.

--Orion 5 should tell you about the escaped scientist before being destroyed.
if Orion_5_stn:getHull() < 15 then
    print ("Orion 5 distruction is immedient. Hull at Orion_5_stn:getHull().)
end

Console prints this error message when function is called:

[ERROR] LUA: update: [string "scenario1.lua"]:390: attempt to call a nil value (method 'getHull')
@nallath nallath added the bug label Dec 15, 2015
@daid
Copy link
Owner

daid commented Dec 16, 2015

5e91de5

@daid daid closed this as completed Dec 16, 2015
amir-arad pushed a commit to amir-arad/EmptyEpsilon that referenced this issue Sep 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants