Суббота, 18.05.2024, 20:22
Secondrus
Приветствую Вас Гость | RSS

Меню сайта
Мини-чат
Скрипт пули.

// 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();
}
}


Измените число в llSetTimerEvent (30.0), чтобы установить время в секундах, через которое пуля-объект исчезнет.


// Davada Gallant (John Girard), WWIIOLers
// 30-second self destructor

default
{
state_entry()
{
//upon creation, immediately start the timer
''llSetTimerEvent(30.0)'';
}

//once the timer ticks off, kill the object
timer()
{
llDie();
}
}

Форма входа
Календарь новостей
«  Май 2024  »
ПнВтСрЧтПтСбВс
  12345
6789101112
13141516171819
20212223242526
2728293031
Поиск
Ссылки
Статистика
Copyright MyCorp © 2024
Сделать бесплатный сайт с uCoz