Bullet: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Typo |
||
| Line 1: | Line 1: | ||
==Script== | ==Script== | ||
<pre>// Davada Gallant (John Girard), WWIIOLers | <pre>// Davada Gallant (John Girard), WWIIOLers | ||
| Line 9: | Line 6: | ||
f() | f() | ||
{ | { | ||
llMakeExplosion(5, 0.1, 0.01, 2, .5, z, <0,0,0>); | llMakeExplosion(5, 0.1, 0.01, 2, .5, z, <0,0,0>); | ||
} | } | ||
default | default | ||
{ | { | ||
on_rez(integer a) | on_rez (integer a) | ||
{ | { | ||
llResetScript(); | llResetScript(); | ||
} | } | ||
state_entry() | state_entry () | ||
{ | { | ||
llSetStatus(STATUS_PHYSICS, TRUE); | llSetStatus(STATUS_PHYSICS, TRUE); | ||
llSetStatus(STATUS_DIE_AT_EDGE, TRUE); | llSetStatus(STATUS_DIE_AT_EDGE, TRUE); | ||
llSetBuoyancy(0.1); llSetDamage(100); | llSetBuoyancy(0.1); | ||
llSetDamage(100); | |||
} | } | ||
collision_start(integer a) | collision_start (integer a) | ||
{ | { | ||
f(); | f(); | ||
llDie(); | llDie(); | ||
} | } | ||
touch_start(integer a) | touch_start (integer a) | ||
{ | { | ||
f(); | f(); | ||
llDie(); | llDie(); | ||
} | } | ||
land_collision_start(vector a) | land_collision_start( vector a) | ||
{ | { | ||
f(); | f(); | ||
Revision as of 04:09, 14 August 2007
Script
// Davada Gallant (John Girard), WWIIOLers
// Distributable Bullet Code
key z = "b85073b6-d83f-43a3-9a89-cf882b239488";
f()
{
llMakeExplosion(5, 0.1, 0.01, 2, .5, z, <0,0,0>);
}
default
{
on_rez (integer a)
{
llResetScript();
}
state_entry ()
{
llSetStatus(STATUS_PHYSICS, TRUE);
llSetStatus(STATUS_DIE_AT_EDGE, TRUE);
llSetBuoyancy(0.1);
llSetDamage(100);
}
collision_start (integer a)
{
f();
llDie();
}
touch_start (integer a)
{
f();
llDie();
}
land_collision_start( vector a)
{
f();
llDie();
}
}