User Guide
377
This handler counts the milliseconds and posts an alert if you’ve been working too long:
on idle
if the milliseconds > 1000 * 60 * 60 * 4 then
alert "Take a break"
end if
end
See also
ticks, time(), timer
min
Syntax
list.min
min(list)
min (a1, a2, a3...)
Description
Function; specifies the minimum value in the list specified by list.
Example
The following handler assigns the variable vLowest the minimum value in the list bids, which
consists of [#Castle:600, #Shields:750, #Wang:230]. The result is then inserted in the content of
the field cast member Sorry:
on findLowest bids
vLowest = bids.min()
member("Sorry").text = \
"We’re sorry, your bid of $" & vLowest && "is not a winner!"
end
See also
max()
minSpeed
Syntax
member(whichCastmember).modelResource(whichModelResource).
emitter.minSpeed
Description
3D property; when used with a model resource whose type is #particle, allows you to get and
set the minimum speed at which particles are emitted. Each particle’s initial velocity is randomly
selected between the emitter’s
minSpeed and maxSpeed properties.
The value is a floating-point number and must be greater than 0.0.
Example
In this example, ThermoSystem is a model resource of the type #particle. This statement sets
the
minSpeed property of ThermoSystem to 5, which causes the slowest particles of
ThermoSystem to move somewhat slowly. Within a given particle system, the slower a particle
moves, the shorter the distance it will travel.
member("Fires").modelResource("ThermoSystem").emitter.\
minSpeed = 5
See also
maxSpeed, emitter