Frontpage Forums MAPPING HANGOUT MAPPING QUESTIONS Re Spawning enemy in a different location
This topic has 4 replies, 3 voices, and was last updated 4 years, 4 months ago by Anonymous.
Viewing 5 posts - 1 through 5 (of 5 total)
    • The Mist Participant
      September 22, 2017 at 06:32 #2129

      Can anyone remember the correct syntax to get enemies to respawn at a truck for eg once they get killed? The code i have worked in IC years ago but doesn’t work in aw2. Can anyone help?

    • Captain Keymaster
      September 28, 2017 at 11:45 #2132

      You basically need to teleport them to the vehicle using ssn2ssn with ssnuse inside a loop.

      I can find the code on my stationary computer but it wont be up before a 1-2 weeks. Can you wait that long? 🙂

      ________________________
      Captain
      - Website Administrator

    • The Mist Participant
      October 6, 2017 at 07:16 #2135

      Ok here is the coding i used in IC tried it but it doesn’t work in AW2.

       

      if never() and ssndead(1711) then
      set(v5,1)
      endif

      if never() and ssnalive(1711) and eq(v5,1) then
      ssn2ssn(1711,67203)
      ssnuse(1711)
      endif

      if chain(3) then
      ssnrelease(1711)
      ssntowp(1711,1)
      endif

    • Inactive
      January 3, 2018 at 13:59 #2371

      It would be very helpful if you could let us know what DOES happen when ssn(1711) dies…

       

      if eq(v5,0) and ssndead(1711) enter

      set(v5,1)

      text(“TEST: Kill”)

      endif

       

      if eq(v5,1) and ssnalive(1711) and ssnalive(67203) and never then //***CORRECTION!!!!

      ssn2ssn(1711,67203)

      ssnuse(1711)

      text(“TEST: Teleport”)

      endif

       

      if chain(3) then

      ssnrelease(1711)

      ssntowp(1711,1)

      text(“TEST: Release”)

      endif

       

      ***ssnalive(67203)     //If you move AI to vehicles that are dead, the bots will decide to commit suicide!! Not cool.

      I am not even going to ask why you teleport single AI to a truck(!). Seems like a total waste of limited resources.

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.

Latest 10 Maps

AW2 – A Walk To The Devil

Rachetes Mappack (18 AW2 maps)

Red Sparrow Mappack (13 AW2 maps)

-Tof- Lunda Tribute Mappack (17 AW2 maps)

Viper 77 Mappack (13 AW2 maps)

Hardmaps AW2 Mappack #2 (17 maps by HmS Shadowman)

Hardmaps AW2 Mappack (12 maps by HmS Shadowman)

Escalation Mappack #2 (42 maps)

Escalation – Mappack (16 maps by oM)

AW2 – Heart Attack Airport

Recently Active Members

Profile picture of -ToF-Oldie
Profile picture of Andrey_Berg
Profile picture of Avble
Profile picture of Storm_GEKO
Profile picture of M Jay Blake
Profile picture of korzekwa
Profile picture of Ennio PG
Profile picture of Walker*|*
Profile picture of Captain
Profile picture of Wilma Hunter
Profile picture of Red Dog
Profile picture of jrussels
Profile picture of Delta_Rat
Profile picture of TheWad
Profile picture of Lee0723

Log In

Username:

Password:


Lost password? | Register