Javascript inside ships - problems, problems?
Posted: Fri Feb 01, 2008 11:36 am
First of all, I've discovered that if you put
script = "myShipScript.js"
inside shipdata.plist, the old style scripting - like death_actions - will not be used by that ship. Quite puzzling for a while until I figured that out.
I've now got two questions:
- is there a list of all js events that apply to ships? I looked on the wiki, but couldn't find it.
- is there a way to access the individual ship one particular script is attached to? I wanted to access some of the ship properties using this.ship.propertyname, but - of course - it didn't work.
Cheers,
Kaks
script = "myShipScript.js"
inside shipdata.plist, the old style scripting - like death_actions - will not be used by that ship. Quite puzzling for a while until I figured that out.
I've now got two questions:
- is there a list of all js events that apply to ships? I looked on the wiki, but couldn't find it.
- is there a way to access the individual ship one particular script is attached to? I wanted to access some of the ship properties using this.ship.propertyname, but - of course - it didn't work.
Cheers,
Kaks