|
Kobra Stein
Registered User
Join date: 25 Apr 2006
Posts: 9
|
05-11-2006 10:55
hey All
I am new to scripting sorry
I would like to make a parachute open after the escape pod has been released from the main ship
I could not pay any one but would be willing to add on any info in ship about them and what they did for me as well as making the ship give a landmark to any place they own and or allow them to sell the ship on if they wished to do so
|
|
Charles Granville
Registered User
Join date: 18 Mar 2006
Posts: 33
|
05-11-2006 14:18
Root prim script integer temp;
buoyancy(float bouy) { llApplyImpulse(<0,0,llGetMass()*9.8>,TRUE); llSetBuoyancy(buoy); }
default { state_entry() { } on_rez(integer param) { llSleep(10); buoyancy(0.9); llMessageLinked(LINK_SET,0,"deploy",NULL_KEY); } land_collision_start(vector pos) { llMessageLinked(LINK_SET,0,"retract",NULL_KEY); } }
Parachute script (put in each prim of the parachute) default { state_entry() { } link_message(integer snum, integer num, string str, key id) { if (str == "deploy") llSetAlpha(1,ALL_SIDES); if (str == "retract") llSetAlpha(0,ALL_SIDES); } }
This will deploy the parachute after 10 seconds. Not tested in SL, may have a few errors.
|
|
Kobra Stein
Registered User
Join date: 25 Apr 2006
Posts: 9
|
05-12-2006 01:40
Thank you for your help would you like me to add any thing in to the pod like a note card for your shop or any thing like that
|
|
Charles Granville
Registered User
Join date: 18 Mar 2006
Posts: 33
|
05-12-2006 09:45
Nah, I'm fine. Just mention I helped if someone asks.
|