Jump to content

Recommended Posts

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

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 by Mobbstar

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

Thank 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!)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...