It's kind of hard to explain in a title, but i've
attempted to implement JRH's disorientation script into a spawn script i have for an enemy. The script normally plays music when the enemy spawns, and stops when the it's destroyed. But i need to add the disorientation effect to it. I've tried many different ways, like playing around with "runfpidefault" values, changing the "state" values, etc. But no luck. The camera either zooms in real quick, then back out, and no music plays, or it stays zoomed in (as intended) but loops a loud, 'glitchy' sounding noise really fast. It's kind of hard to explain. Either way, the script doesn't work. And although i'm trying to learn how to script, i couldn't make a decent one if my life depended on it. The only scripts i've ever been successful with were very simple audio ones. I was hoping maybe someone could point me in the right direction with this one. What am i doing wrong? Did i miss something?
This is my
attempted combination of the two scripts:
;Artificial Intelligence Script
;Header
desc = Instant On
;Triggers
:state=0:musicoverride=audiobank\music\terrorstrike\ChokeLoop(louder).wav,setalphafade=100
:state=0:camfov=80,runfpidefault=0
;End of Script:
PS: The disorientation script is intended to be applied to a trigger zone, but i just used a certain part of it, not the other trigger zone and timer commands.
Cheers, Jake
------------------------------------------------------------
-The Clarkson Residence- (WIP)