Home   Help Search Login Register  

Author Topic: Need to make a change to Dolittles revive script  (Read 1482 times)

0 Members and 1 Guest are viewing this topic.

ollestolpe

  • Guest
Need to make a change to Dolittles revive script
« on: 15 Jul 2005, 13:21:22 »
I'm using dolittles wonderful revive-script.
The thing is that when all are dead and nobody left to revive them, the mission ends.

I want it to move the players back to the beginning of the mission.

The script work like this:

* A player is killed, and he is respawned outside a big trigger.
* Where he died the body dissapear and a new body (with blanket) appear.
* Then a camera shows this body.
* When a soldier from the same side walks over the body the body dissapear, the cam is destroyed and the player is moved to that spot.

What I want to do is:

* All players die.
* The bodies dissapear.
* The players are moved to the biginning of the map, and have to continue their mission from there.

Get it?
I hope some of you guys could help me out....

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Need to make a change to Dolittles revive script
« Reply #1 on: 15 Jul 2005, 18:24:01 »
ok, i didn't test this but it should work right, i added an extra check to the cam.sqs and another global variable, allsoldiers, which you need to put the names of all the units running the script in (an array)

i rezipped the demo mission it comes with, with my edited version (check the init sqs for the new variable)

tell me how it works
« Last Edit: 16 Jul 2005, 17:03:37 by Triggerhappy »

ollestolpe

  • Guest
Re:Need to make a change to Dolittles revive script
« Reply #2 on: 15 Jul 2005, 20:42:31 »
Thank you!
I will look into it this week...

I've been on this mission this entire day!
It's my first one.

ollestolpe

  • Guest
Re:Need to make a change to Dolittles revive script
« Reply #3 on: 15 Jul 2005, 20:56:31 »
Sorry.. It didn't work.
It does just the same as earlier.

Thanks alot though. Nice of you to try and help me out!

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Need to make a change to Dolittles revive script
« Reply #4 on: 15 Jul 2005, 21:23:59 »
well then could you explain it more because all i did was add a check that ends the script when everyone in the array is dead (all at the same time)

i could put in a distance check when everyone is such and such distance from the body the script exits and allows the body to respawn normally...

other than that i can't think of what you want changed

ollestolpe

  • Guest
Re:Need to make a change to Dolittles revive script
« Reply #5 on: 16 Jul 2005, 12:38:14 »
Thank you.

What I'm trying to do is this.
Instead of the mission ending when all players are dead and nobody is around to revive them.
I want them to respawn at a specifik point.

Example.

* Mission begins, players are inserted at insertion point.
* Players travel up north to a camp.
* 1 player is killed.. he is revived by another.
* All of a sudden, from out of nowhere, a shilka goes by killing all players.
* Nobody is alive to revive them, so they are all respawned at insertion point.

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Need to make a change to Dolittles revive script
« Reply #6 on: 16 Jul 2005, 17:03:53 »
well, from looking at the script, all it does is have a normal respawn, but keeps the player in a cutscene until there is someone to revive him in which case the cutscene is ended and the player is back to his normal view.  other than adding in the same check to the other script, i don't know what to do.