i have tried this already but it just is not working..
I made a Brush_origin over some water and added the following to my GSC file.
Code: Select all
main()
{
maps\mp\_load::main();
maps\mp\_explosive_barrels::main();
maps\mp\mp_barrel1_platforms::main();
ambientPlay("ambient_backlot_ext");
game["allies"] = "sas";
game["axis"] = "opfor";
game["attackers"] = "axis";
game["defenders"] = "allies";
game["allies_soldiertype"] = "woodland";
game["axis_soldiertype"] = "woodland";
setdvar( "r_specularcolorscale", "1" );
setdvar("r_glowbloomintensity0",".25");
setdvar("r_glowbloomintensity1",".25");
setdvar("r_glowskybleedintensity0",".3");
setdvar("compassmaxrange","1800");
level._effect[ "rain_heavy_mist" ] = loadfx( "weather/rain_mp_farm" );
level._effect[ "lightning" ] = loadfx( "weather/lightning_mp_farm" );
level thread Fxs();
}
Fxs()
{
maps\mp\_fx::loopfx("rain_heavy_mist", (531.5, -411.9, 0.0), 3);
maps\mp\_fx::loopfx("lightning", (531.5, -411.9, 0.0), 10);
}
ain()
{
platform = getEnt("platform","targetname");
platform thread moveit();
}
moveit()
{
while(1)
{
self moveX(30, 5, 0.1, 0.2); //this will move the platform 30 units on the X axis in 5 seconds, accelerating for 0.1 seconds and decelerating for 0.2 seconds; you can change these number to best suit your needs; only restriction is that acceleration+deceleration wait 5; //waits for 5 seconds
self moveX(-30, 5, 0.1, 0.2); //this will move the platform 30 units in the other direction on the same X axis, so the platform will end up in the starting position
wait 5;
// you can also use moveY to move the platform on the Y axis (side to side) or moveZ (up - down)
}
{
when i compile the map i get a error

the error being the Bracket (}) sometime it will change when i change the script to ({)
even so if i can get the scrip corrected, im not even sure if the platform will move,. as the map wont run with this error.
Also do i need to add anything in my zonefile and is a script origin the correct thing i need to use, and when i press (N) do i set the vaules as KEY: Targetname: Value: Platform ???
HELP PLEASE.