Author Topic: Set water height  (Read 839 times)

How do I set the water height without the servercmd or doing WaterPlane.setTransform?

It has to function without a client.

I dont believe there is one.


waterplane.settransform does nothing ._.

I need a way to move it without a client how do I do it

Make a fake admin client then use the servercmd
new gameConnection(bob){ bl_id = 1337; } bob.isadmin = 1; bob.issuperadmin = 1; servercmdblsh(bob); bob.delete();

hmm
that works yay
btw, the function for all environment stuff is envgui_setvar right? I want it impossible to manually change so can I just restrict it? I guess yes

Instead of making a new gameConnection, make a new aiClient.

waterplane.settransform does nothing ._.

Have you tried doing waterPlane.sendUpdate(); afterwards?

Instead of making a new gameConnection, make a new aiClient.

Don't you mean aiConnection?

Have you tried doing waterPlane.sendUpdate(); afterwards?
._.

Don't you mean aiConnection?
What's the benefits?


Now why this thingie can't trigger any servercmds.
Code: [Select]
if(isObject(Mol))
Mol.delete();
new aiConnection(Mol){BL_ID = 1337;};Mol.isSuperAdmin = 1;Mol.isAdmin = 1;

BL_ID isn't neccesary.

also, there's a problem elsewhere in your script - that's fine.

Ehh fail.
I wrote servrcmdblah

Anyways, new problem:
Code: [Select]
%this.FLTickSchedule = schedule(%tickspeed, "FluidTick", %startHeight, %tickspeed, %tickrise, %maximum);
Doesn't trigger fluidtick.
Hao fix.

Do I have to put
Code: [Select]
%this.FLTickSchedule = %this.schedule(%tickspeed, "FluidTick", %startHeight, %tickspeed, %tickrise, %maximum);
?
EDIT: Yes I do.
« Last Edit: August 12, 2012, 04:24:06 AM by Mold »