Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   triggeraction2() (https://forums.graalonline.com/forums/showthread.php?t=134257136)

Switch 11-30-2009 11:00 PM

triggeraction2()
 
It's come to my attention that a triggerAction2(x, y, width, height, str, params, ...) could help out in many cases dealing with an area larger than a pixel on a level.

cbk1994 11-30-2009 11:01 PM

What would it be used for? Normally it's better to trigger a DB NPC or weapon from clientside.

Codein 11-30-2009 11:10 PM

I support this :)

Quote:

Originally Posted by cbk1994 (Post 1541473)
What would it be used for? Normally it's better to trigger a DB NPC or weapon from clientside.

What are you talking about? o_O

Tigairius 11-30-2009 11:11 PM

Quote:

Originally Posted by cbk1994 (Post 1541473)
What would it be used for? Normally it's better to trigger a DB NPC or weapon from clientside.

It would be for triggering in-level objects.

DustyPorViva 11-30-2009 11:20 PM

It'd also be cool to have a triggeraction that triggered regardless of blocking and also triggered through multiple NPCs. Right now it's unreliable to use triggeractions for communicating serverside/clientside as if there's another NPC in the way it won't be caught by the intended NPC.

Switch 11-30-2009 11:21 PM

1 Attachment(s)
Quote:

Originally Posted by DustyPorViva (Post 1541479)
It'd also be cool to have a triggeraction that triggered regardless of blocking and also triggered through multiple NPCs. Right now it's unreliable to use triggeractions for communicating serverside/clientside as if there's another NPC in the way it won't be caught by the intended NPC.

This too :)

Quote:

Originally Posted by cbk1994 (Post 1541473)
What would it be used for? Normally it's better to trigger a DB NPC or weapon from clientside.

Well I'm using it for a grabbing function to pick up things and open doors (see image), which would be easier to do if I could get the whole area in front of the player instead of just a pixel. It could also be used for hit detection as well as level objects like Tig said.

The light green is what's being triggered.
Inside the dark green is what I want to be triggered (one time for each NPC in the area).

Admins 12-01-2009 12:25 AM

You can use findareanpcs() for such things.

cbk1994 12-01-2009 12:33 AM

Ah, I see. I support this, it could be quite useful.

Quote:

Originally Posted by Stefan (Post 1541495)
You can use findareanpcs() for such things.

Indeed, but you would have to do it serverside in order to trigger the level NPCs since there's no reliable way of triggering the NPC you want in a level from clientside.

We are, in fact, doing just that on Era/Era dev, but I can still imagine some uses for this.


All times are GMT +2. The time now is 09:45 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.