Search found 2 matches

by instablemonster
Sun Dec 28, 2014 9:03 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3738
Views: 1382321

Re: Ask a simple question, get a simple answer

Since the teleporter object has a ControllerComponent named "controller", you can use the global delayedCall function: function teleporterrotation() teleporter_13.controller:activate() delayedCall("teleporter_13",1.5,"deactivate") end to deactivate the teleporter after 1.5 seconds. Thank you !
by instablemonster
Sun Dec 28, 2014 8:16 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3738
Views: 1382321

Re: Ask a simple question, get a simple answer

How do I put a delay in between the activate and deactivate ?

Code: Select all

function teleporterrotation()
	teleporter_13.controller:activate() 
	teleporter_13.controller:deactivate()
end