View Full Version : RMC GM Only?
Veldehar
December 20th, 2009, 18:53
I was wondering if there is a tag that would make a variable able to be edited by the GM, but not the players, when pulling up things such as adventure_weapons.
Veldehar
Foen
December 20th, 2009, 19:17
You could do this in script:
<script>
function onInit()
if super and super.onInit then
super.onInit();
end
setReadOnly(not User.isHost());
end
</script>
Hope that helps
Foen
Veldehar
December 20th, 2009, 19:41
Sweet! You're my hero again, Foen! Works great.
Veldehar
Veldehar
December 25th, 2009, 05:57
Is there a tag similar to ReadOnly that makes something visible to the GM only when the item is shared with players?
Veldehar
Foen
December 25th, 2009, 07:23
You could do this in script:
<script>
function onInit()
if super and super.onInit then
super.onInit();
end
setVisible(User.isHost());
end
</script>
Hope that helps
Foen
Veldehar
December 25th, 2009, 15:51
I figured it was something simple I was missing, thanks again Foen!
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.