Ok, so I've got something odd that I can't figure out. And I'm hoping someone here can help.
I've got a trigger zone with the following script:
;Artificial Header
desc = spawn Camera
;Triggers
:state=0,scancodekeypressed=45:settargetname=Camera1,state=1
:state=1:activatetarget=1,state=2
;End of Script
I've got a dynamic entity named Camera1 with the following scipt:
;Artificial Intelligence Script
;Header
desc = Control spawn mode via activation
;Triggers
:state=0,activated=1:spawnon,animate=1,state=1
:state=1,activated=0:spawnoff,state=0
;End of Script
Camera1 Spawn at Start is set to No. When the player enters the trigger zone and presses X, the camera appears. But this is clunky, so I tried to re-write this using a single script in Main for the camera:
;Artificial Intelligence
desc = Spawn Camera
;Triggers
:state=0,plrdistwithin=20,scancodekeypressed=45:spawnon,animate=1,state=1
;End of Script
When I remove the trigger zone and replace main with the above script, no matter how close I get to where the camera is it doesn't spawn. At all. Anybody know why?
In addition to this, I've got 2 other problems related to the camera (which is the security camera from model pack 2).
1. When I place the camera, unless I am spawning in the above fashion it does not display. It displays in the editor, but not in the test level.
2. According to the script that is normally attached to the camera, it is supposed to have animation (hence, animate=1). But no matter what I try, when the camera spawns it doesn't animate. Is this normal behavior?
I'm not so much concerned about the animation as I am the displaying and spawning issues. Can someone help me understand why I'm having these problems?
Priest of the Church of Joe Wood
In memory of Nanee. 9/1/1993 - 5/16/2009. Rest in Peace, little girl.