These forums are CLOSED. Please visit the new forums HERE
Attachments the teleport? |
|
|
Dire Graves
Registered User
Join date: 3 Sep 2007
Posts: 51
|
09-10-2007 07:08
Just wondering if it's possible for an attachment to teleport you. I tried doing this but it didn't work, although it's very possible that I just did it wrong. I wanted to have an attachment which would serve as a key to an area that has no door. This area is also way up in the sky..
|
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
09-10-2007 07:11
It is not possible to have an attachment teleport you. It is, however, possible to have an attachment rez a "teleport beam" that you could then sit on and be teleported.
_____________________
--AeonVox--
Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music. |
|
Dire Graves
Registered User
Join date: 3 Sep 2007
Posts: 51
|
09-10-2007 07:25
Ok, guess I'll quit trying to make it work and just go with a self destructing teleporter. Thanks
|
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
09-10-2007 08:08
|
|
Dire Graves
Registered User
Join date: 3 Sep 2007
Posts: 51
|
09-10-2007 08:57
Thanks..
Will that work if the teleport position is set on the land to another location? |
|
Dire Graves
Registered User
Join date: 3 Sep 2007
Posts: 51
|
09-10-2007 10:11
I'm getting a syntax error on the if statement, anyone know why?
Teleport() { vector CurPos = llGetPos(); if (CurPos.z > 700) warpPos(Home) else warpPos(HideOut); llUnSit(AvSitting); llDie(); } |
|
Kage Seraph
I Dig Giant Mecha
Join date: 3 Nov 2004
Posts: 513
|
09-10-2007 10:38
Looks like a simple error made easy by formatting without tabs and carriage returns:
Teleport() { ____vector CurPos = llGetPos(); ____if (CurPos.z > 700) ____{ ________warpPos(Home) ____} ____else ____{ ________warpPos(HideOut); ____} ____llUnSit(AvSitting); ____llDie(); } Now do you see where the semicolon is missing? When in doubt, properly format your code and mistakes are much much easier to spot!_____________________
|
|
Shyan Graves
Registered User
Join date: 10 Feb 2007
Posts: 52
|
09-10-2007 10:39
Hi Dire,
there is a semicolon missing i line if (CurPos.z > 700) warpPos(Home) else warpPos(HideOut); change it to if (CurPos.z > 700) warpPos(Home); else warpPos(HideOut); if this does not doe the trick, change the line to if (CurPos.z > 700) { warpPos(Home); } else { warpPos(HideOut); } I'm getting a syntax error on the if statement, anyone know why? Teleport() { vector CurPos = llGetPos(); if (CurPos.z > 700) warpPos(Home) else warpPos(HideOut); llUnSit(AvSitting); llDie(); } |
|
Dire Graves
Registered User
Join date: 3 Sep 2007
Posts: 51
|
09-10-2007 11:17
Thanks, guys
![]() I'm used to VBScript....all these semicolons are new to me. |
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
09-10-2007 11:24
Thanks.. Will that work if the teleport position is set on the land to another location? |