Home   Help Search Login Register  

Author Topic: Blood script: excellent  (Read 3985 times)

0 Members and 1 Guest are viewing this topic.

Offline KevBaz

  • Members
  • *
Re:Blood script: excellent
« Reply #30 on: 27 May 2003, 19:17:24 »
Quote
check the readme

u need to manually add the eventhandler to spawned units.

Ok i must be having a blonde moment, could u elaborate a bit more on what has to be done exactly, i dont see no reference to respawning in the readme....


cheers

Offline snYpir

  • BIS Team
  • ****
  • OFPEC Jedi Master
    • OFPEC
Re:Blood script: excellent
« Reply #31 on: 27 May 2003, 22:18:28 »
Quote
Note:
-----

Units created with 'CreateVehicle' will not have the blood effects enabled. If the unit you create is named 'my_unit', you could use the following line of code to enable blood effects for that unit:

my_unit addeventhandler [{hit},{_this exec {\OFPEC_Blood\blood_squirt.sqs}}]

or do you mean respawning in multiplayer?
Bohemia Interactive Simulations

Offline KevBaz

  • Members
  • *
Re:Blood script: excellent
« Reply #32 on: 27 May 2003, 22:35:47 »
yup, multiplayer wit respawn

Offline snYpir

  • BIS Team
  • ****
  • OFPEC Jedi Master
    • OFPEC
Re:Blood script: excellent
« Reply #33 on: 28 May 2003, 00:51:23 »
Hmmm. You may have to make a new file in your mission directory... OnPlayerRespawn.sqs or something (it is in \dta\scripts.pbo by default).

Copy the one out of \dta\scripts.pbo I would suggest (use UnPBO). Modify it to add the eventhandler to the spawned unit using the code in my post above.

I am going from memory here - I do no guarentee that this method will work. Please give it a go and let me know ;)
Bohemia Interactive Simulations

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:Blood script: excellent
« Reply #34 on: 28 May 2003, 18:05:53 »
could be quite interesting to modify it so blood splatter also sprays over nearby units and makes them bloody - could be a nice touch.
Proud Member of the Volunteer Commando Battalion

Offline KevBaz

  • Members
  • *
Re:Blood script: excellent
« Reply #35 on: 28 May 2003, 18:32:17 »
ok in the scripts.pbo theres

onPlayerrespawnOtherUnit.sqs

and

onPlayerRespawnAsSeagull.sqs

neither of these seem right, or am i wrong?

VUSN042

  • Guest
Re:Blood script: excellent
« Reply #36 on: 27 Jun 2003, 23:19:55 »
The filename you're after is: onPlayerRespawn.sqs like snYper said.

Just create a new file, There's no system default for that one.

The file onPlayerRespawnOtherUnit.sqs is called when the player dies and you have respawn = "side" or respawn = "group" active.

The file onPlayerRespawnSeagull.sqs is called when respawn is not active.