Respawns/ Checkpoints
2 posters
Operation Flashpoint Dragon Rising OFDR Forums :: OPERATION FLASHPOINT: DRAGON RISING :: OFDR EDITING :: EDITING Q+A
Page 1 of 1
Respawns/ Checkpoints
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
dewi316- Veteran
- Location : swansea
Points : 179
Reputation : 22
Join date : 2012-12-19
Re: Respawns/ Checkpoints
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:
That way every time someone respawns, you automatically get two more respawns.
- Code:
function onRespawn(entityName)
OFP:checkpoint()
end
That way every time someone respawns, you automatically get two more respawns.
Regg- Veteran
- Points : 143
Reputation : 10
Join date : 2013-02-22
Operation Flashpoint Dragon Rising OFDR Forums :: OPERATION FLASHPOINT: DRAGON RISING :: OFDR EDITING :: EDITING Q+A
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|