A new item has been added to your inventory! With this tutorial map you can add a pointer for selecting buttons on any control panel. It uses trigger_clickitem for the buttons, and they can be very close together.
The map has panels for a four story elevator, a touchtone phone on which you can dial numbers, and a fireworks rocket launcher for five rockets (they respawn). There is also a lighthouse with a cuttoff switch, but it does not use the pointer. There are a couple of new things too, like a new breakable window and a shiny silver texture.
Enjoy!
Last edited by tltrude on Thu Jul 01, 2004 6:27 pm, edited 2 times in total.
The rockets are "notsolid" and the fireworks explosions do not damage players--no need because they are high up. But, it could be done by adding radiusdamage to the explosion thread. Also, my rockets just "moveup", but you could have them "moveto" a waypoint.
I was going to have the rockets randomly go crazy and explode on the ground (always nice to see at a fireworks display), but changed my mind, lol.
gave the pointer a try. hey, it's not as difficult to use as it looked
great job, Tom
but now, i would like the 'buttons' do things like turn a wheel cw as long as I click button 1 and ccw while clicking button 2 and stop wheel if no button is clicked. 'clicked' means aiming at the button and pressing the left mouse button.
Would this be possible? And how??
Yes, it should be easy to do. Just subsitute your wheel moving lines in one of the "for" loops. Stoping the wheel when the button is released could get tricky.
tltrude wrote:Yes, it should be easy to do. .... Stoping the wheel when the button is released could get tricky.
isn't this self-contradictory?
I'd know how to let a thread run continously after clicking... The problem is to check the mouse button continously like a gun's trigger...
Btw, there's not a single for-loop in ur script
Tom's map uses a pointer which is like a weapon with firetype clickitem , like the binoculars , and a trigger clickitem . Other than that you handle it like you would any trigger with waittill trigger or setthread , local.player = parm.other , while(local.player.fireheld) etc etc .