Scripts / need global and ai_soldier scripts

Author
Message
PCS
8
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 12th Sep 2016 19:12
I was watching broadcast #49 of lee, were you show us how to spawn millions of ai soldiers.
what I saw is that your global lua script and ai_soldier script is modified, and there is no way for me to remake the same
script witch I need for a game that I am busy at , at this moment. Pleas Lee can you please give us a copy of your updated global lua script and of your ai_slodiers script as well, I am new at game guru and lua scripting , and really want to learn from you and all the other scripters , but can not do it if we do not have the same scripts as you have.


I thank you for giving us game guru, as it has change my life.

Thanks.
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 12th Sep 2016 19:27
https://forum.game-guru.com/thread/212794?page=3#msg2549919
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

PCS
8
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 12th Sep 2016 19:49
Hi guys , sorry if I did not explain correctly what I want to do.
jus as in broadcast #49 were the ai soldiers spawn at their start position when they were killed,
I need also to spawn the ai_soldiers at there start position if the player are shot dead . otherwise they keep un running to the player at the players start position. its like resetting the scene with all the soldiers at there start position when the player dies before he has killed all the ai_slodiers.
and if possible can someone please help me and provide me with a code for this.
MChapman
9
Years of Service
User Offline
Joined: 19th May 2015
Location: USA
Posted: 13th Sep 2016 02:04
you should be able to watch the video or broadcast and follow along to get what you need.
Markchapman10 is my Skype let's have some dev talk.
PCS
8
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 13th Sep 2016 18:31
Hi Mchapman , thanks you for your advice.
I have looked again at the video ( broadcast #49) and I am only interested in the beginning of the video part were Lee shoot the ai_soldiers and then he let them spawn back at there starting point. and that is were I saw that his ai _soldier script and global lua is not the same as the one I , or we have. I have tried again but can not get it to work. I am new at this , and it sounds to me that when you say I must be able to watch it and get it right, then there must be someone that can easily help me to wright a script were if the ai_soldier shoot you dead then the ai_soldier spawn again at his starting position. please would you be so kind as to help me and wright the script for me. Or if any body can help me with writing such a script.

I need a script were the ai soldier spawn or respawn back at his sarting position if he shoot me dead.

Thanks for everyone's help and input





3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 13th Sep 2016 19:35
I was checking Lee script linked by Mike, and I've some doubts about.

about "spawnmaker_points = 0"
He do not increase that value, so it will end to being equal to zero everytime.

about "GetEntityLUAHealth(e) "
I was not able to find nothing related, and it is not stated in "global.lua"

Basically he is spawning AIs when they die.

if GetEntityLUAHealth(e) <= 0 then
Spawn(e)
end

Obviously "GetEntityLUAHealth(e) " state the AI health, but ignore where this statement sit.

@ PCSKILLER
You has to try your code, post here what you've so far, and people here can help you.
I understand than you stated you have not LUA skills, and if I understand well, you are requesting for a complete code to fit your needs, but if I remember fine, that's the forum rules.

Basically you will need to store AIs positions in a variable, for later use. (when spawn), is here when you will need some LUA skill, to understand what I'm referring to.

3com




Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
PCS
8
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 13th Sep 2016 21:04
@3com

Thanks so much for your response on my request.
Yes I am new to lua , and only started to learn how to wright some stuff.
I will try again and if I do not get it to work, I will post then what script I have so far.


PcsKiller

MChapman
9
Years of Service
User Offline
Joined: 19th May 2015
Location: USA
Posted: 14th Sep 2016 00:11
I recommend that you don't start learning with this stuff just yet. I think you should start off with the health .lua, and watch all the broadcasts and follow them before you start into modifying the ai scripts. look at some of my scripts and other scripts.
Markchapman10 is my Skype let's have some dev talk.

Login to post a reply

Server time is: 2024-12-22 22:14:51
Your offset time is: 2024-12-22 22:14:51