Community Forum

create PDA hotspots

Forum Overview >> Scripting

CategoryScripting
Created03.11.2010 22:07


Andreas Großschedl (Unknown) 03.11.2010 22:10
Hi!
Whats wrong with my script(for a new map)?

self.missionPDA:createMapHotspot();
local hspotOverlayId= createImageOverlay(Utils.getFilename("map01/xyz.png", self.baseDirectory));
self.missionPDA.hotspots[1]= { overlay={},
persistent=true,
width=0.45,
yMapPos=1273,
xMapPos=1507,
enabled=true,
height=0.048,
visible=true,
objectId=0,
blinking=false};
self.missionPDA.hotspots[1].overlay = {visible=true,
r=1,
g=1,
width=0.072,
y=0,
x=0,
height=0.048,
a=1,
b=1,
overlayId=hspotOverlayId};

thx

Andreas Großschedl (Unknown) 19.11.2010 22:25
Found it out now! For all others: http://forum.landwirtschafts-simulator.de/viewtopic.php?f=376&t=25356
or on Wiki: http://wiki.farming-simulator.com/index.php/LS11_Mapbauhilfe


Note: Log in to post. Create a new account here.