|
Sop Ashdene
Registered User
Join date: 14 Oct 2008
Posts: 4
|
12-23-2008 00:45
Please help as the script wont push the avatar out of the vehicle default { state_entry() { rotation situp=llEuler2Rot(<2*PI,3*PI/2,0>); llSitTarget(<-1.70, 0.0, -0.4>, situp); // needed for llAvatarOnSitTarget to work // Note that if both the vector and the rotation are zero, // the SitTarget is removed instead of set and the following will not work: } changed(integer change) { if (change & CHANGED_LINK) { key agent=llAvatarOnSitTarget(); if(agent) llUnSit(agent); llPushObject(agent, <0,0,1000>, ZERO_VECTOR, FALSE); } }
}
|
|
Chalice Yao
Registered User
Join date: 30 Jan 2007
Posts: 14
|
12-23-2008 01:59
It won't work unless:
* the agent is the owner of the vehicle or * the vehicle is owned by the land owner or if the land is deeded, a group member or * Push is enabled on the land.
If one of the three is a given, then increase the force and try again. add a llSleep(0.1) after the unsit to make sure the avatar is standing before doing the pushing.
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
12-23-2008 09:33
You have a nicer alternative now anyway. Use llSetLinkPrimitiveParams() to put the avatar at a good place out of the way of the vehicle before unseating them. Much better than the old push thing and works every time.
|