![]() |
regarding setshape2 on clientside
I'm making an invisible barrier (setshape2 on clientside)
I have it so only certain accounts can pass through, BUT, I want to make it so I can open/close the barrier to let people through that aren't listed, but I'm not sure how to do this since the script is clientside. if I add an open command, won't it only disable for the person opening it and not for the people I'm trying to let through since it's clientside? I hope I'm making sense here. is there anyway around that? how can I make a blocking setshape on the serverside instead? that would be a solution. haven't really scripted in a long time so I'm finding problems with such little things. thanks. |
You could have a script clientside that if a certain attribute, say this.attr[15] is set equal to true, that any account can pass.
And then have a script serverside that allows you to say open or close that would switch this.attr[15] from true to false? |
Here you go, just customize it from here:
PHP Code:
|
Why not use client strings?
|
yours works great Gambet, but it wasn't really what I was looking for.
I eventually just worked out the problem myself. I have 2 actiongrabs, one on clientside, one on serverside. the one on clientside lets you go through personally. the one on serverside allows you to open the barrier for other people. PHP Code:
|
Quote:
That's really all that I was trying to show you, you didn't need to take everything that I used line-by-line I just made it like that for my own debugging purposes to make sure it worked and to show you how it worked. From my example, you were supposed to use the method as you saw fit and customize it to whatever you needed it to do, as you did. :) |
ah okay. thanks for the help :D
|
Might want to use save strings for the accounts, here's how
HTML Code:
function onCreated() { |
Quote:
|
Quote:
Edit: Extract from commands.rtf: HTML Code:
save[0],..,save[9] built-in variables that work in online mode (integer values >=0, <=220) |
Thanks Crow ^^
|
| All times are GMT +2. The time now is 11:45 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.