I made this script for my game and may some body need to this script and want to learn and search for it.
look at image :
Explain Script :
- Enemy don't hear from player exist and player want to do a closet mission in this zone and in this zone there is a security camera.
- So you must have some moves that camera can't to see you.
- If camera see you , will play a Alarm sound and Enemy hear , So enemy follow the waypoint and shoot player.
- The Alarm sound will stop in 20 second later.
How use from this event ?
1-) Set this script for you'r trigger zone (its camera view angle).
;3Dmajid AL
;Header
desc = Camera Alarm
;Triggers
:state=0,plrwithinzone=1:state=1,timerstart,sound=audiobankalarm.wav,activateifused=1,state=2
:state=2,timergreater=20000:musicvolume=0
;end of script
2-) Go to you'r trigger zone properties and enter you'r enemy name in IFUSE.
3-) Set this script for you'r enemy in Main AL.
;Artificial Intelligence Script
;Header
desc = Follow Waypoints
;Triggers
:state=0:animate=1,state=1
:state=1,activated=1,waypointstate=0:animate=2,waypointstart
:waypointstate=3:state=2,animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:state=2:shootplr
;End of Script
If some body had made this script , pardon me for this post.
Special Thanks of
0 Geoff 0 for some help.
The life is standby ... So decide for you'r target and then you'll see that you are arrived and get it.