Jump to content

[Help] How to make a character force activate something?


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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
 Share

×
  • Create New...