Operation Flashpoint Dragon Rising OFDR Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Respawns/ Checkpoints

2 posters

Go down

Respawns/ Checkpoints Empty Respawns/ Checkpoints

Post by dewi316 Sat 28 Feb 2015, 09:52

I'm trying to make a co op mission and I want too use the  mission Checkpoints as a top up of lives need some code to make that work! I'm thinking a top up of four lives one for each player thanks in advance cheers
dewi316
dewi316
Veteran

Location : swansea
Points : 179
Reputation : 22
Join date : 2012-12-19

Back to top Go down

Respawns/ Checkpoints Empty Re: Respawns/ Checkpoints

Post by Regg Mon 02 Mar 2015, 04:09

I can't remember if you start with 2 or 4 respawns, but every time you call OFP:checkpoint() you get 2 more respawns. I keep it simple and add this function:

Code:
function onRespawn(entityName)
    OFP:checkpoint()
end

That way every time someone respawns, you automatically get two more respawns.
Regg
Regg
Veteran

Points : 143
Reputation : 10
Join date : 2013-02-22

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum