Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Push-Me, Pull-You

Hawkster Westmoreland
Freakin' Awesome
Join date: 7 Dec 2006
Posts: 2
02-12-2007 12:47
Hey everyone,

I was originally going to message Andrew Linden about this, but I'll also post it here in case anybody has any ideas about how to solve this problem.

To begin, here's some of my code:


CODE
 default 
{
state_entry()
{
// do nothing useful here
}

touch_start(integer num_times)
{
// when touched, push the toucher upward
llPushObject(llDetectedKey(0), <0,0,30>, ZERO_VECTOR, FALSE);
}
}


Now, that is supposed to send the person who touched the object into the air when they touch it. However, I find that when I wear the object as an attachment with this script, it only works in the case that I am on my own land. I have tried this in other areas that are also push-enabled, but absolutely nothing happens.

Is something going on with llPushObject or am I just not seeing something?
_____________________
:cool: I'm alive, kicking, awesome, and scripting! :cool:
Elsewhere Essex
Registered User
Join date: 8 Sep 2006
Posts: 50
02-12-2007 16:38
for an attachmeant, llApplyImpulse() mat\y be a better option and have far more predictable results, not to mention doesn't require push enabled land.