Home   Help Search Login Register  

Author Topic: aP soldier  (Read 604 times)

0 Members and 1 Guest are viewing this topic.

nuzzimauro

  • Guest
aP soldier
« on: 20 Oct 2004, 14:47:03 »
Can I change player-control between 2 or more soldiers?
(es. I'd like play with different kinds of unit switching into different soldiers during the game...). How can i do???

Thanx!

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:aP soldier
« Reply #1 on: 20 Oct 2004, 15:04:59 »
According to my faint memory, this is only possible in campaign, not single- or multiplayer missions.
Not all is lost.

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:aP soldier
« Reply #2 on: 28 Oct 2004, 23:27:33 »
i might have discovered a loophole to that rule...

you would have to change the description somehow and that i cant do, but...

wouldnt you be able to have a script that kills the unit and deletes the body, and then set the respawn to instantly bring him back, but using the description.ext to make them a different unit?

the script itself wouldnt be hard, and i know how to do the description for the respawn part, but does anyone no how to set it up to change units, if thats even possible?

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:aP soldier
« Reply #3 on: 28 Oct 2004, 23:32:07 »
woops, double-post, oh well  ;D

anyway it could also be scripted to make the unit you want to become, and make him the only other member in the group, then set the respawn to become the other member in your group, kill the player, delete/move the body, and set the groups and respawn back to how they were

that might work

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:aP soldier
« Reply #4 on: 29 Oct 2004, 02:02:56 »
Might work in MP.    There's no respawn in SP so I doubt you could make it work there.
Plenty of reviewed ArmA missions for you to play

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:aP soldier
« Reply #5 on: 29 Oct 2004, 03:10:42 »
well, you can get arrays of what the player has, and then switch it to something else, then use the array to switch back so you dont get all of your ammo back

i'm not sure, but there might be a way to do that with the face as well

if its in a mission you are making just set the players face and then change it for the other type of unit he becomes

working on a script for it, but i dont know if it will work...
« Last Edit: 29 Oct 2004, 03:34:27 by Triggerhappy »

Dubieman

  • Guest
Re:aP soldier
« Reply #6 on: 30 Oct 2004, 05:59:03 »
Wouldn't you have to alter the onplayerdeath.sqs?
Wouldn't it activate to quickly, or instantly in SP?

I'm sure you can do it in MP, easily. Just a matter of who you are reincaranating into, the LAW guy, or the Kozlice guy. ;D

Edit: TriggerHappy, nice pic, never seen a stormtrooper do that manuever. :thumbsup:
« Last Edit: 30 Oct 2004, 06:00:07 by GuiltyRoachKillar »

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:aP soldier
« Reply #7 on: 30 Oct 2004, 16:33:20 »
hehe, thanks ;)

my scripts didnt work, not sure how to get it to work ???

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:aP soldier
« Reply #8 on: 30 Oct 2004, 16:39:21 »
Well, nobody else has figured out how to do it either, so you're in good company.

OFP is an old game.    If it's easy, somebody has already done it.    If it's hard .... well there's still plenty of things to be discovered .....
Plenty of reviewed ArmA missions for you to play

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:aP soldier
« Reply #9 on: 31 Oct 2004, 15:51:54 »
i think i figured out how to script it, but i would like to know if there is a command that returns the face of a unit?
« Last Edit: 31 Oct 2004, 18:35:54 by Triggerhappy »