Author Topic: Clicking stuff without opening/closing inventory  (Read 932 times)

Im in need of a script wich allows me to click doors without closing and reopening inventory.

i don't think this is even possible, it's using the same functions to shoot the gun as to click the door

Well, if I remember correctly, the laser pointer could be used to trigger onActivate. Maybe a keybind that spawned a short range invisible projectile that would do the same? The server would need the mod too, obviously

i'm confused, what does the inventory have to do with this?

i'm confused, what does the inventory have to do with this?
try opening a door while holding something

Cant you just put zone bricks on front of each side of the door?

try opening a door while holding something
oh when holding a tool, no one said that
You could make a client sided script that toggles tools and clicks rapidly... anyone want that? It's easy enough.

Cant you just put zone bricks on front of each side of the door?
or onPlayerTouch

oh when holding a tool, no one said that
You could make a client sided script that toggles tools and clicks rapidly... anyone want that? It's easy enough.
without closing and reopening inventory.
that kind of implies that he doesn't want his inventory closed and reopened, and that he has a tool/weapon out

also, this seems like he wants it clientsided instead of serversided, this can be done serversided by creating a new servercommand or modifying an existing one, but fully clientsided will not work
Well, if I remember correctly, the laser pointer could be used to trigger onActivate. Maybe a keybind that spawned a short range invisible projectile that would do the same? The server would need the mod too, obviously
this right here is a combonation of serversided and clientsided code, keybinds need to be clientsided unless it's a preexisting one like the light key
laser pointer/spawning projectiles or raycasts has to be serversdied



one thing I did in my jail rp that never really got finished was disabled building completely, then have the buttons 0-9 use weapons like in source games, then have the spraycan key "e" and "q" free to be repurposed.  I believe I had E as an interact key and Q as the melee attack key.

No client side mod required

one thing I did in my jail rp that never really got finished was disabled building completely, then have the buttons 0-9 use weapons like in source games, then have the spraycan key "e" and "q" free to be repurposed.  I believe I had E as an interact key and Q as the melee attack key.

No client side mod required
oh my god I had that exact idea along with rebinding the brick key aswell

Could make a server mod that would simply fire a short raycast when the onFire function was called, getting the datablock of the brick, checking if it was a door, and if it was, call the function that opens the door.

Could make a server mod that would simply fire a short raycast when the onFire function was called, getting the datablock of the brick, checking if it was a door, and if it was, call the function that opens the door.

problem: pew