|
1. Paint down a "force field (bounce)" or "force field (bounce - long range)" trigger. This trigger defines the borders of the force field. This is a static force field and will always be active. The long range bouncer can be used to send players long distances, such as over water or pits. Note it will also throw the player through walls and force fields so be careful.
2. Place "force effect bouncer" (ffx_bouncer) objects within the field. The creature will bounce back away from these bouncers. You should place them fairly close together, but small gaps are usually ok. In the case of a repulsion field a single bouncer at the center should be used.
Notes:
There is a bug where a creature's minion will hit a bouncer and bring the master along with it. If a creature has a summoned minion they may be able to escape from a force cage. I'm not sure if it is possible to transport a creature and NOT transport it's summoned creatures. I'm working on this issue however, hopefully it will be resolved in the next release.
Creatures know nothing about force fields, the default AI will ignore them and try to walk right through them. I can think of a few ways to make a npc aware of a forcefield, but that is a task for another script.
Magic and ranged weapons pass through force fields. My excuse for this is that the field is a number of force bars not a solid wall and the spells / arrows are passing between the bars. If you don't like this you could rewrite the spell scripts to check if the target is inside a force cage and fail in that case. I'm not sure how you would block arrows though.
To create a field you can turn on and off use the force wall or force cage trigger.
|