Just follow the script …

A tutorial that seems to be taking time is one involving object scripting … what to showcase?

I thought providing practical applications of scripts were a plan, so set about to put in things that are controlled by scripts that do stuff that might be useful.

remember to close the door

remember to close the door

Doors, using a controlled, rotation, triggered by a click (or activate)

activate rotate 0 20 0 nosync time=1 wait=2 global

meaning, when you click on it, rotate about the Y axis at a speed of 20 (-20 to open in the reverse direction) for 1 second, wait open for 2 seconds then close; global means all can see it, not just the clickee.

transport portals

transport portals

A cute set of “stargates” – one warps to the other, the other teleports – both use the “bump” event (ie. when you run into the non-solid blue twirly thing the action is applied)

create rotate 0 0 -6, solid off; bump warp 3.51N 9.06E 0.03a 14

…meaning when the blue swirly thing first appears, it is rotating around the Z axis, making a nice whirlpool thingy; it can be walked through; when someone bumps into it you warp (walk in fast motion) to the named coordinate – easy. The only real difference between point A and point B is the warp/teleport command word and the coordinates.

a little rock and roll

a little rock and roll

I recycled the rockshop sample lab (from Q2 – made a looooong time ago) into a percussion lab using activated noises

create light color=blue brightness=1 fx=fire; activate noise http://myworld.eq.edu.au/media/biggestbassdrumopen.wav overlap

…meaning, when the rock is first rezzed, it sheds blue firelight; when you click on it it triggers a sample that allows other samples to play over it. nice.

dancing dave

dancing dave

Next a little free-play pitch, roll and yaw, with some uppey-downey motion thrown in – the aim here – I name the lego dude and then the scripts inside each clickable sign reach out and effect that named object:

activate move 0 1 0 name=bob loop wait=0

which means move in the Y axis a thing called bob, do not wait but keep moving it back and forth – bob bobs up and down, the others apply a rotation in the named axes.

next … a particle lab I think.

Tags: ,

Comments are closed.