Scripts / i have some Questions.

Author
Message
PCS
8
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 16th Jul 2018 19:13
i was wandering if someone can help me i have some questions.

1. Were in the new ai scripts can i find the exit part to activate a kill for my kill counter. ? i am ok with the head shot part i just need the normal death part were the exit would be.

2. What do i have to set or adjust to have the Npc not to disappear after he is killed. i want him to lie on the ground for a while before he disappear, or can i have like an trigger to be activated when the body must disappear?

3. in the past when we had the old ai scripts it was possible to change an ai 's script to another script.
it could be done by having this commands Include("ai_soldier.lua") and SwitchScript(e,"ai_soldier")
the two functions were used in like this



Ok so what i want to know is can it still be done with the new ai scripts and if so how would one do it ? were do you have to put it in the new ai script. if you want to change the script to another script.

Any help would be appreciated.
Thanks a lot.

Pcs
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 4GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 16th Jul 2018 19:31
Quote: "1. Were in the new ai scripts can i find the exit part to activate a kill for my kill counter. ? i am ok with the head shot part i just need the normal death part were the exit would be.
"

add it yourself to ai_soldier.lua (or whichever AI script you are using)
i.e. (replace "kills" with your desired variable)

Quote: "2. What do i have to set or adjust to have the Npc not to disappear after he is killed. i want him to lie on the ground for a while before he disappear, or can i have like an trigger to be activated when the body must disappear?"

don't think we have any control over this, the engine cleans up dead characters automatically to keep frame rates up
Quote: "3. in the past when we had the old ai scripts it was possible to change an ai 's script to another script.
it could be done by having this commands Include("ai_soldier.lua") and SwitchScript(e,"ai_soldier")
the two functions were used in like this
Ok so what i want to know is can it still be done with the new ai scripts and if so how would one do it ? were do you have to put it in the new ai script. if you want to change the script to another script. "

this is pretty much how the new scripts work by default now, the old scripts simply include and call the new ones, so to switch you would need to add a check in the correct place (depending on when you wanted it to swap) and do likewise.
i.e.

lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
PCS
8
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 16th Jul 2018 19:37
Smallg
Thank for your quick response its awesome to have someone like you on this forum.
Thank you.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 4GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11

Login to post a reply

Server time is: 2024-12-22 19:55:03
Your offset time is: 2024-12-22 19:55:03