Modme Forums

How to manipulate a spawned fx or light entity?

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


ModmeBot:

Thread By: Shushumu

Hi,

These are actually different questions but I'm having trouble with both of them, so I post them together here.

1. I have successfully spawned an fx in my level using the line below:

fx = SpawnFX(name,position);



However I cannot despawn the spawned fx. I've tried kill() and hide(), both didn't work.

2. I also have a spot light in the level that I want to move to the top of a targeted zombie when I'm looking at him.

I have found the zombie in script and can print a line when I'm looking at him. However, either moveTo() or setOrigin() work on the light entity. The zombie is moving, so I can't just toggle another light to fake it. Is there a way to move a light entity in game?

Thanks in advance for your help!