[REQUEST] Entity triggering
I suggest a public function which is triggered
when an entity is being triggered by another entity. This can be Entity -> Entity and Player -> Entity. Code:
'victim_ent' shall be the triggered entity. 'start_ent' shall be the entity that started the triggering chain. 'type' is triggering type. (Toggle, On, Off, Kill Target / 0, 1, 2, 3) For example if a Player (ID 7) presses a Button (ID 143) we should get this: Code:
func_foor (ID 231) and the Button has delay of 1 Second, we will get this 1 Second after the Player pressed the Button: Code:
|
Re: [REQUEST] Entity triggering
not to hijack your thread ( sorta )
how about when an entity takes dmg? that would eliminate alot of traceline and looping for a plugin im in the process of making |
Re: [REQUEST] Entity triggering
Quote:
So if you just want to make your code shorter you will sadly be ignored here. :| The above which I need seems to have no way to be done, yet, so I posted here. But note, that if you do not get answers in the Scripting Help Forums, you just make a Request here and after some minutes you get your Answer in form of a big Reason why your Request is being declined. :grrr: Back to Topic: If this is being accepted I have no Clue in what Module this will be put into. |
Re: [REQUEST] Entity triggering
Well if you want to get technical.
For people you can check every time they use something and then check the entities that they are looking at and get the information about that entity. So it doesn’t encompass all of what you asked but part of it is still possible. There is no easy way to get when an entity has been damaged without a ridiculously long amount of code that isn’t 100% precise. Many of the natives that already exist were created for the very reason of making your code shorter. It has already been asked in scripting help (yes I did a search) and AFAIK there is no way to do it accurately. I have been doing this for some time now (pre 0.9.3 AMXMOD) there is no need to talk down to me. I didn't mean to intrude on your thread in an effort to kill two bird with one stone. |
Re: [REQUEST] Entity triggering
All this stuff is handled by the game dll inside of it's private data. It's not sent from the engine to the game dll or vice-versa.
It's not really possible/practical to hook while maintaining cross mod compatibility. |
Re: [REQUEST] Entity triggering
Quote:
|
Re: [REQUEST] Entity triggering
Quote:
It's extremely complex, isn't worth it and very unlikely it'll be done, however. |
Re: [REQUEST] Entity triggering
There is only one way at the Moment to do the half of what I am requesting here:
Get the complete Maps Entity System and reproduce it in the Plugin. This will be 2000 lines of Code and the Players actions aren't even included. Entities are very important! I cannot believe they get so little developmet. |
Re: [REQUEST] Entity triggering
Quote:
Quote:
|
Re: [REQUEST] Entity triggering
understand i right you want i like this:
Code:
Code:
|
| All times are GMT -4. The time now is 04:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.