Code: Select all
:spawn shipMT1012Carrier-base-for-others
Code: Select all
:spawn MT1012Carrier-base-for-others
Code: Select all
mission.runScreen({model: 'MT1012Carrier-base-for-others'})
Moderators: winston, another_commander, Getafix
Code: Select all
:spawn shipMT1012Carrier-base-for-others
Code: Select all
:spawn MT1012Carrier-base-for-others
Code: Select all
mission.runScreen({model: 'MT1012Carrier-base-for-others'})
Code: Select all
system.addShips("MT1012Carrier-base-for-others",1,player.ship.position.add([10000,0,0]));
Isn't that a Java Script command? I tried it, and the Debug Console said,Svengali wrote:TryYou could simply use underscores instead of the minus (then you can use the :spawn macro again) and a eaaier to remember name will help too, e.g. "Mandoman_BaseCarrier_MT1012".Code: Select all
system.addShips("MT1012Carrier-base-for-others",1,player.ship.position.add([10000,0,0]);
Code: Select all
Exception: TypeError.system.addships is not a funtion
You have a case sensitivity error there. You typedmandoman wrote:Isn't that a Java Script command? I tried it, and the Debug Console said,Svengali wrote:TryYou could simply use underscores instead of the minus (then you can use the :spawn macro again) and a eaaier to remember name will help too, e.g. "Mandoman_BaseCarrier_MT1012".Code: Select all
system.addShips("MT1012Carrier-base-for-others",1,player.ship.position.add([10000,0,0]);
Code: Select all
Exception: TypeError.system.addships is not a funtion
system.addships
in the console when it should be system.add[b][size=150]S[/size][/b]hips
, as provided by Svengali.Code: Select all
("MT1012Carrier-base-for-others"
Yep. The console is there to be used for JS commands. The macros (like :spawn) are just a convenient way to use JS.mandoman wrote:Isn't that a Java Script command?
No worries, mandoman. It was my fault. I should have tested it before posting useless stuff.mandoman wrote:Svengali, I didn't mean to criticize in any way. I really DON'T know where the bracket should go. I'm sorry, but for some reason (most likely stupidity) js seems to be beyond me.