SKai0 Posted November 3, 2015 Share Posted November 3, 2015 I have written simple code which allows a character to spawn a pair of wormholes to traverse in a mark recall fashion, however I would like to force the character to activate the wormhole as soon as the second one is spawned at his location. I have tried several different things but haven't been able to do this :/Any help or suggestion of a different way to do this would be much appreciated.Thanks in advance.http://pastebin.com/embed_js.php?i=UpVEAvJS Link to comment Share on other sites More sharing options...
Mobbstar Posted November 3, 2015 Share Posted November 3, 2015 (edited) I assume the wormholes are either crafted or spawned using custom code? In the former case, have the wormhole listen for the event "onbuilt". In the latter, just hook the action code at the end of the spawn code. (That probably sounds like nonsense) EDIT: Yeah I'm too lazy to download Edited November 3, 2015 by Mobbstar Link to comment Share on other sites More sharing options...
SKai0 Posted November 3, 2015 Author Share Posted November 3, 2015 I assume the wormholes are either crafted or spawned using custom code? In the former case, have the wormhole listen for the event "onbuilt". In the latter, just hook the action code at the end of the spawn code. (That probably sounds like nonsense) EDIT: Yeah I'm too lazy to downloadThank you very much! That was exactly what I needed. (also, "In the latter, just hook the action code at the end of the spawn code. (That probably sounds like nonsense)"LOL!) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now