Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Help with llPushOject implementtaion

KINGR Redgrave
Registered User
Join date: 23 Dec 2006
Posts: 37
12-29-2006 16:51
ok, so i was wondering if anyone can help me with this. here is the llPushOject script

CODE


llPushObject(key id, vector impulse, vector angular_impulse, integer local)



now can someone show me how to fill in the variables for pushobject, how to get them and put them in the right areas.help would be appreciated thanks
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
12-29-2006 17:18
Well, the right values for those variables depend on what it is you're trying to do. So.. what are you trying to do?

The first value is the key of the object or av you're trying to push.
The second value specifies the force to be applied (how much, and in which direction)
...
and so on

The best way to learn about how this stuff works is to go to a sandbox and drop a script in a prim and adjust the numbers to see what they do. I'd advise you not to push people around you, because they might not like that. Try pushing an object you own, or pushing your own av (use llGetOwner() to get your av's key).

So for example...

CODE

default
{
touch_start(integer num)
{
llPushObject(llGetOwner(), <0, 0, 100>, <0, 0, 0>, 0);
}
}


... will push you upwards when you touch this object. if you don't see your av move, try increasing the impulse value. if your av moves too far, try decreasing it. If you want to be pushed in a different direction, try changing those values. ... and so on.
KINGR Redgrave
Registered User
Join date: 23 Dec 2006
Posts: 37
12-29-2006 17:42
thanks alot for the script help, i will try this out. I just wanted this because i am trying to learn and build a self defense weapon to sell,i know it sounds cheesy but its a project i want to start out on.but how would i get someone elses key, plug it in and have the script work?
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
12-29-2006 18:25
Search the archives of this forum, that's been discussed recently.

Also note that pushing someone else could possibly get you abuse reported and/or banned from SL. I don't make weapons so I'm not familiar with what the Terms Of Service say about that, but I'd recommend looking it up.
KINGR Redgrave
Registered User
Join date: 23 Dec 2006
Posts: 37
12-29-2006 18:39
thanks for the info,but as i said before it is for self defense,so say someone has done something to you, a push,hit,bump or something,the device would pick that up and push the avatar out of its range.im new so im trying to learn
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
12-29-2006 20:57
From: KINGR Redgrave
thanks for the info,but as i said before it is for self defense,so say someone has done something to you, a push,hit,bump or something,the device would pick that up and push the avatar out of its range.im new so im trying to learn

Unfortunately an equal and opposite reaction, in this case a push because you were pushed; is still ARable. In other words they are have a record that you pushed them, and you are both going to file AR reports with no resoluton.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
KINGR Redgrave
Registered User
Join date: 23 Dec 2006
Posts: 37
12-29-2006 21:06
thats is true,but what if there was a way to put an object thats in your script package under the preditor and have the object belaunched?
Seifert Surface
Mathematician
Join date: 14 Jun 2005
Posts: 912
12-29-2006 21:50
If you get hit by a sufficiently nasty push weapon you will have no problem in removing the attacker from your vicinity, without the use of any scripting at all...
_____________________
-Seifert Surface
2G!tGLf 2nLt9cG
KINGR Redgrave
Registered User
Join date: 23 Dec 2006
Posts: 37
12-29-2006 22:11
what else could you make that would sell other then weapons?
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
12-30-2006 02:57
From: KINGR Redgrave
what else could you make that would sell other then weapons?


ROFL, you have got to be kidding right?
Havent you walked around SL much?