Author Topic: Another stupid newbie question...  (Read 1975 times)

0 Members and 1 Guest are viewing this topic.

Offline Daboule

  • 24
Another stupid newbie question...
Hi all,

I've followed all the scripting tutorials but I'm still in trouble...
For example where can I found something related to the "plr" object used in the velocity indicator script example?
It seems to be the player ship as it's used to display the Velocity of the ship player on the HUD, but I'm not really sure, is it described somewhere?

Thanks for your help

Bye,

Daboule

PS : Sorry for my english...
« Last Edit: April 30, 2008, 06:47:59 am by Daboule »

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: Another stupid newbie question...
That script was written for the older scripting system. And i had to take apart my main cpu for maintenance so i cant test it atm...

But assuming you are using fairly recent builds with the new scripting system you could probably set the following before the plr is actually used.

Code: [Select]
plr = hv.Player
That is in the new scripting system the plr is under the hook variables. And should appear only while the mission is running.

I'll try to take a better look once i get my main cpu back online after several HD related problems. Or perhaps earlier...
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Another stupid newbie question...
alternatively you could use.

plr = mn.Ships["Alpha 1"]
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Daboule

  • 24
Re: Another stupid newbie question...
Thank you very much for your answers...
I'll try this...

Daboule