Scripts / Enemy speak

Author
Message
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 29th Jan 2019 21:39 Edited at: 29th Jan 2019 21:47
Hi, i wanna make my enemys talk, but only if they spot me(the player), is there a way to do this?I want that they spell somenthing like"i see u, u gonna die".There is a shop keeper script but its a friendly AI script, and u have to be very near to the character to activate the sound.
PM
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 29th Jan 2019 22:47
Yes, well maybe. If you find that shopkeeper script you should be able to increase the distance if you locate the line in it.
I think it wouldn't be too difficult to add that snipit of code to the soldier script as well. Backup originals if so.
PM
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 30th Jan 2019 00:09 Edited at: 30th Jan 2019 10:13

Here is the storekeeper script, but iam not expert in scripting.How do add the audio play line to the reular soldier script?I dont need the "hallo how i can help u" text part.
I guess the command should be somethink like
"if character rotatetoplayer(e) then
PlaySoundIfSilent(e,1)
Right?
PM

Login to post a reply

Server time is: 2024-03-28 22:51:53
Your offset time is: 2024-03-28 22:51:53