ActivateShield
.Method ActivateShield:Int()
The shield object is already created, so we just want to make it active. As we want it to be deactivated after 5 seconds, we need to create a timer to do this.
tmShieldTime
, and when it should fire (in 5000
milliseconds).eng.CreateObjTimer(g.shield, g.tmShieldTime, 5000)
g.player.SetColGroup(0)
g.shield.SetActive(True) Return 0 End
The last method you have created will activate the shield of the player ship and create the timer that will deactivate the shield when it fires.
3.146.105.137