Modme Forums

moving FX and barricades and lights

Game Modding | Call of Duty: Black Ops 3 | Scripting


muscularhi:

I have an elevator map and the elevator moves up leaving behind the lights and the fire in the elevator, is there any way to make the barricade, fire, and lights to move with the elevator?


function moveelevator()
{

elevatorshafts = GetEntArray("elevator", "targetname"); //array = multiple

buttont = GetEnt("buttontrigger","targetname");

buttont SetHintString("press &&1 to move the elevator");

buttont waittill("trigger",player);

foreach(shaft in elevatorshafts)
{
shaft MoveZ(300,4);
}

buttont Delete();

}

this is my script so far


Spiki:

I have an elevator map and the elevator moves up leaving behind the lights and the fire in the elevator, is there any way to make the barricade, fire, and lights to move with the elevator?


function moveelevator()
{

elevatorshafts = GetEntArray("elevator", "targetname"); //array = multiple

buttont = GetEnt("buttontrigger","targetname");

buttont SetHintString("press &&1 to move the elevator");

buttont waittill("trigger",player);

foreach(shaft in elevatorshafts)
{
shaft MoveZ(300,4);
}

buttont Delete();

}

this is my script so far

Barricade no, fire and lights only if they're fx with playfxontag()


UnknownNewbie:

In the radiant go to light and make it ServerSide then tick the scriptable and give it a targetname elevator

In the function add shaft SetMovingPlatformEnabled(true); above the shaft MoveZ(300,4);