Jump to content

[HELP] Timer on object


VenomOG

Recommended Posts

So the main goal is a timer to destroy this object 
 

	hijackStart = createPickup ( x,y,z, 3, 1210 )
	
	destroytimer[hijackStart] = setTimer(function()
	destroyElement(hijackStart)
	destroyElement(hijackBlip1)
	startDelivery()
	outputMessage("Nobody has delivered the hijack in 15 minutes spawning a new one",255,100,100)
	end,9000000,1)

addEventHandler("onPickupHit",hijackStart,function(hitElement,md)
if isTimer(destroytimer[hijackStart]) then killTimer(destroytimer[hijackStart]) end
end)

in 15 minutes , any other way to approach this?

Link to comment
  • Moderators
On 07/12/2019 at 13:39, VenomOG said:

any other way to approach this?

There are many. But if there is no issue, why changing the approach?

If you want a different approach, it doesn't start with code, but with a concept and questions.

How should the data be saved? And how should the data be accessed? Must it be dynamic? Must it be player specific? What are the conditions? What are the possible outcomes?

 

Link to comment

I got it

3 hours ago, IIYAMA said:

There are many. But if there is no issue, why changing the approach?

If you want a different approach, it doesn't start with code, but with a concept and questions.

How should the data be saved? And how should the data be accessed? Must it be dynamic? Must it be player specific? What are the conditions? What are the possible outcomes?

 

But thanks anyways 

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...