Home   Help Search Login Register  

Author Topic: Respawn in SP  (Read 488 times)

0 Members and 1 Guest are viewing this topic.

Offline punisher

  • Members
  • *
Respawn in SP
« on: 05 Aug 2003, 09:52:07 »
hi
is it possible to respawn vehicles and men and even your player in SP.
Sort of like BF1942

thanks for the help
The Gimp clan- pushing the limits of OFP
http://www.youtube.com/user/Pigdogmeat

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Respawn in SP
« Reply #1 on: 05 Aug 2003, 12:29:25 »
You can use the createVehicle and camCreate commands to make things spawn in the middle of a mission.     Or you can create them in the mission editor, hide them on an offshore island and use setPos to move them into the action where and when you want.

With the player it's more difficult.    Learn about eventHandlers - in particular the eventhandlers "hit" and "killed".    I'm not sure if you can bring a player unit back to life with setdammage 0 if he has been killed but it might be possible if you're quick enough.     You can then use setPos to "respawn" the player back at base or whereever you like.    You might need to use a titlecut blackout and black to cover it though, otherwise it might look odd.
Plenty of reviewed ArmA missions for you to play

Offline punisher

  • Members
  • *
Re:Respawn in SP
« Reply #2 on: 05 Aug 2003, 15:07:20 »
i found a beta script, i will try it out now and see if it works
The Gimp clan- pushing the limits of OFP
http://www.youtube.com/user/Pigdogmeat