KG Uritsky
Registered User
Join date: 26 Jan 2005
Posts: 3
|
02-21-2005 08:19
Hello everyone.
I have not been able to find the source code for a push gun bullet. Can someone please show me a simple one?
Regards.
|
Malachi Petunia
Gentle Miscreant
Join date: 21 Sep 2003
Posts: 3,414
|
02-21-2005 09:53
No.
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
02-21-2005 10:10
// // Bolter Round //
vector velocity; integer shot = FALSE; float damage = 100; float hitpower = 99999999999999999999999999999.9; float lifetime = 5;
explode() { vector vel = llGetVel() * hitpower; llSetStatus(STATUS_PHYSICS, FALSE); llPushObject(llGetOwner(), vel, ZERO_VECTOR, FALSE); llDie(); }
default { state_entry() { llSetDamage(damage); } on_rez(integer start_param) { llSetStatus(STATUS_DIE_AT_EDGE, TRUE); llSetBuoyancy(1.0); llCollisionSound("", 1.0); // Disable collision sounds velocity = llGetVel() * 5; float vmag; vmag = llVecMag(velocity); if (vmag > 0.1) shot = TRUE; llSetTimerEvent(lifetime); }
collision_start(integer total_number) { explode(); } land_collision_start(vector pos) { explode(); } timer() { explode(); } } </evil> (You didn't say who or what it should push.)
|
KG Uritsky
Registered User
Join date: 26 Jan 2005
Posts: 3
|
02-21-2005 10:17
I want it to push people... or I guess objects also? Could you push a house away? Hehehe
|
Huns Valen
Don't PM me here.
Join date: 3 May 2003
Posts: 2,749
|
02-21-2005 10:21
From: Jillian Callahan stuff
I love you.
|
KG Uritsky
Registered User
Join date: 26 Jan 2005
Posts: 3
|
02-21-2005 10:23
Okay, now I just don't know what we're talking about.
|