Trigger an event any time a player uses a stargate?
-
- Commonwealth Pilot
- Posts: 86
- Joined: Fri Dec 04, 2009 1:46 am
How do I trigger an event any time a player uses a stargate? It can be on entering or exiting, doesn't matter. Is there a virtual device I can add to a playership that would activate automatically upon entering a system?
Vaiyo A-O
A Home Va Ya Ray
Vaiyo A-Rah
Jerhume Brunnen G


A Home Va Ya Ray
Vaiyo A-Rah
Jerhume Brunnen G


- digdug
- Fleet Admiral
- Posts: 2620
- Joined: Mon Oct 29, 2007 9:23 pm
- Location: Decoding hieroglyphics on Tan-Ru-Dorem
George was so kind to add for us <OnPlayerEnteredSystem> and <OnPlayerLeftSystem>, they should do what you need.
we also have <OnGlobalPlayerEnteredSystem> which is a station event.
Unfortunately I never tried to tinker with them in a proper way so I don't know when they run exactly.
we also have <OnGlobalPlayerEnteredSystem> which is a station event.
Unfortunately I never tried to tinker with them in a proper way so I don't know when they run exactly.
- alterecco
- Fleet Officer
- Posts: 1658
- Joined: Wed Jan 14, 2009 3:08 am
- Location: Previously enslaved by the Iocrym
This is a nice place to look for events:
http://wiki.neurohack.com/transcendence/wiki/events
Note that it might not always be up to date.
http://wiki.neurohack.com/transcendence/wiki/events
Note that it might not always be up to date.