Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

LoadURL via a hud?

Nichiren Dinzeo
Registered User
Join date: 14 Feb 2007
Posts: 203
10-09-2009 13:39
key gAvatarKey = llDetectedKey(0);
llLoadURL("GO TO WEBSITE", "http://www.website.com";);


Using a hud...avatarkey not found..anyway around this?
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
10-09-2009 13:48
llDetectedKey will only work inside certain events, for a HUD that would mostly be touch_start and friends.

If you are trying to display the URL to the HUD's wearer, you could just use llGetOwner(), because you can only attach things you own.

llLoadURL(llGetOwner(), "GO TO WEBSITE", "http://www.website.com";);
Nichiren Dinzeo
Registered User
Join date: 14 Feb 2007
Posts: 203
10-09-2009 14:57
perfect..worked like a charm..thanks
Nichiren Dinzeo
Registered User
Join date: 14 Feb 2007
Posts: 203
10-09-2009 15:17
however...it does not seem to translate well for giving a notecard


llGiveInventory(llGetOwner(),"friend";);



Any thoughts as to why?
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
10-09-2009 15:27
The name of your inventory item has to be exactly correct, and you have to be sure that it is actually in the inventory of the scripted object that is giving it away (not YOUR inventory -- the object's inventory). Check spelling and capitalization to be sure that the notecard is really named "friend".

BTW, why are you giving the notecard to yourself? To test the HUD, maybe?
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
Nichiren Dinzeo
Registered User
Join date: 14 Feb 2007
Posts: 203
10-09-2009 15:40
Spelling of notecard...CHECK.

still no go.

yes....I attached the hud..lower right hand corner....
Nichiren Dinzeo
Registered User
Join date: 14 Feb 2007
Posts: 203
10-09-2009 15:43
ah...my error..the menu option was Help....when it should have been HELP. caps...thx!