Scripts / Shots fired - help needed

Author
Message
Isagabe
10
Years of Service
User Offline
Joined: 12th Sep 2014
Location:
Posted: 16th Jun 2016 11:12
Greetings all

I am having difficulty getting this script to work - attached to an always active entity and after a set amount of shots fired then do whatever - in this test destroy an entity. Engine loads script without errors but the entity disappears immediately after the first shot instead of the max_shots. I have run out of ideas within my limited coding knowledge. Help would be greatly appreciated. Thanks


Isagabe
10
Years of Service
User Offline
Joined: 12th Sep 2014
Location:
Posted: 16th Jun 2016 13:28
For clarity - the intention is to count the shots fired by player's weapon from a set point (be it trigger or the start of level ) before x happens. In the above attempt, the entity which is being destroyed is not the entity being fired upon. Hope this helps. Thanks.
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 16th Jun 2016 14:23
here you go
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Attachments

Login to view attachments
Isagabe
10
Years of Service
User Offline
Joined: 12th Sep 2014
Location:
Posted: 16th Jun 2016 14:59
Wow. Thanks smallg. Amazing.
Isagabe
10
Years of Service
User Offline
Joined: 12th Sep 2014
Location:
Posted: 16th Jun 2016 15:42 Edited at: 16th Jun 2016 15:43
I'm looking at your code and there is no way I would have figured that out. Thank you again.

Login to post a reply

Server time is: 2024-12-22 19:02:34
Your offset time is: 2024-12-22 19:02:34