Senuka Harbinger
A-Life, one bit at a time
Join date: 24 Oct 2005
Posts: 491
|
11-05-2005 13:07
I'm working on some depth charges for a friend's gunboat, and was trying to come up with a script for the depth charges, so that they could be fired at a variety of angles and velocities from a gun on the boat, but not start the explosion timer until they hit the water.
|
Cid Jacobs
Theoretical Meteorologist
Join date: 18 Jul 2004
Posts: 4,304
|
11-05-2005 13:25
...... timer() { vector alt = llGetPos(); float water = llWater(llGetPos()); if ((water > alt.z )) { //Do Stuff } else { //Do Other Stuff } } Hope that helps a bit
|