Here is a way of making a group of AI that keeps attacking by either a vehicle or by ground attack after they die without having them set to re-spawn. You may ask yourself “why??” Short answer; because I can.
I stumbled on to this by accident and I think its a good illusion of reinforcements being sent in to the battle by simply having them teleport back to where they originally started their attack from. For some reason, after the AI dies and gets teleported, he is born again.....creepy
If the following scenario a Blackhawk keeps bringing in reinforcements and since they will never stop coming, a trigger was set so after, they get vaporized.
In this Event the AI wait for the Blackhawk to return after they get killed and teleported if its not there already. Once the whole group is there, they then board the Blackhawk and return to the battle.
IF (Triggers)
SSN 313 is within area 1 and // 313 is the Blackawk
SSN 286 is within area 1 and // 286 is the AI and so on
SSN 287 is within area 1 and //AI
SSN 288 is within area 1 and //AI
SSN 289 is within area 1 and //AI
SSN 290 is within area 1 and //AI
SSN 291 is within area 1 //AI
THEN (Actions)
Redirect group 3 to waypoint 2-0 //Group 3 is the Blackhawk
This Event teleport's the AI back to the area that the Blackhawk takes off from
IF (Triggers)
SSN 286 is dead //286 is the AI
THEN (Actions)
(0) Redirect SSN 286 to waypoint 123-313 // AI 286 Go to SSN (not driver,gunner of 313 Blackhawk)
(1) Teleport SSN 286 to target 3 // Target 3 is the Teleport Marker
Yeah I know....I need a hobby but I get bored at work sometimes.
No AI death after teleporting
- Red Dog-PG-
- Squad Member
- Posts: 1005
- Joined: Thu Jan 10, 2013 1:21 pm
No AI death after teleporting
Handle every stressful situation like a Dog....if you can't eat, hump it, or play with it, pee on it and walk away
- Bubbachuk-PG-
- Site Admin
- Posts: 4921
- Joined: Sun May 16, 2010 1:59 pm
- Location: Marshville, North Carolina
- Contact:
Re: No AI death after teleporting
Very Cool! Thanks!
The democracy will cease to exist when you take away from those who
are willing to work and give to those who would not. ~ Thomas Jefferson
Website: http://pgsquad.com
Facebook: https://www.facebook.com/oliver.holmes.357
- Country Joe-PG-
- Squad Member
- Posts: 2119
- Joined: Sun May 30, 2010 12:29 pm
- Location: USA
- Red Dog-PG-
- Squad Member
- Posts: 1005
- Joined: Thu Jan 10, 2013 1:21 pm
Re: No AI death after teleporting
LOL!
Your the one who showed me how to use Events....so there
Here's the WAC file that goes along with the Blackhawk. It gives the illusion of the AI using a fast rope to exit the Blackhawk.
if never() then
fallmps = 30
set(v1,0)
set(v2,0)
set(v3,0)
set(v4,0) endif
PLOOP
if not ssnnearssn(313,303,10) or ssndead(313) enter
set(v2,0)
set(v4,0)
hidessn(304)
hidessn(316) endif END
PLOOP
if ssnnearssn(313,303,10) and eq(v1,0) enter
set(v2,1) endif END
PLOOP
if ssnnearssn(313,324,30) and eq(v1,0) enter
ssntowp(313,3) endif END
PLOOP
if eq(v2,1) then
set(V3,1) endif END
PLOOP
if eq(v2,0) then
set(V3,0) endif END
PLOOP
if eq(v3,1) and elapse(1) then
inc(v4) endif END
PLOOP
if eq(v4,8) then
unhidessn(304)
unhidessn(316) endif END
PLOOP
if eq(v4,10) and ssnalive(286) then
teleport(4,1)
ssnanim(286,anim_hold_rope) endif
if chain then
ssnanim(286,anim_hold_rope)
ssntowp(286,1) endif END
PLOOP
if eq(v4,12) and ssnalive(287) then
teleport(5,2)
ssnanim(287,anim_hold_rope)
endif
if chain then
ssnanim(287,anim_hold_rope)
ssntowp(287,1) endif END
PLOOP
if eq(v4,14) and ssnalive(288) then
teleport(6,1)
ssnanim(288,anim_hold_rope) endif
if chain then
ssnanim(288,anim_hold_rope)
ssntowp(288,1) endif END
PLOOP
if eq(v4,16) and ssnalive(290) then
teleport(7,2)
ssnanim(290,anim_hold_rope) endif
if chain then
ssnanim(290,anim_hold_rope)
ssntowp(290,1) endif END
PLOOP
if eq(v4,18) and ssnalive(291) then
teleport(8,1)
ssnanim(291,anim_hold_rope) endif
if chain then
ssnanim(291,anim_hold_rope)
ssntowp(291,1) endif END
PLOOP
if eq(v4,20) and ssnalive(292) then
teleport(9,2)
ssnanim(292,anim_hold_rope) endif
if chain then
ssnanim(292,anim_hold_rope)
ssntowp(292,1) endif END
PLOOP
if eq(v4,25) then
hidessn(304)
hidessn(316)
ssntowp(313,3)
ssnpspd(313,60)
ssncspd(313,60) endif END
Your the one who showed me how to use Events....so there
Here's the WAC file that goes along with the Blackhawk. It gives the illusion of the AI using a fast rope to exit the Blackhawk.
if never() then
fallmps = 30
set(v1,0)
set(v2,0)
set(v3,0)
set(v4,0) endif
PLOOP
if not ssnnearssn(313,303,10) or ssndead(313) enter
set(v2,0)
set(v4,0)
hidessn(304)
hidessn(316) endif END
PLOOP
if ssnnearssn(313,303,10) and eq(v1,0) enter
set(v2,1) endif END
PLOOP
if ssnnearssn(313,324,30) and eq(v1,0) enter
ssntowp(313,3) endif END
PLOOP
if eq(v2,1) then
set(V3,1) endif END
PLOOP
if eq(v2,0) then
set(V3,0) endif END
PLOOP
if eq(v3,1) and elapse(1) then
inc(v4) endif END
PLOOP
if eq(v4,8) then
unhidessn(304)
unhidessn(316) endif END
PLOOP
if eq(v4,10) and ssnalive(286) then
teleport(4,1)
ssnanim(286,anim_hold_rope) endif
if chain then
ssnanim(286,anim_hold_rope)
ssntowp(286,1) endif END
PLOOP
if eq(v4,12) and ssnalive(287) then
teleport(5,2)
ssnanim(287,anim_hold_rope)
endif
if chain then
ssnanim(287,anim_hold_rope)
ssntowp(287,1) endif END
PLOOP
if eq(v4,14) and ssnalive(288) then
teleport(6,1)
ssnanim(288,anim_hold_rope) endif
if chain then
ssnanim(288,anim_hold_rope)
ssntowp(288,1) endif END
PLOOP
if eq(v4,16) and ssnalive(290) then
teleport(7,2)
ssnanim(290,anim_hold_rope) endif
if chain then
ssnanim(290,anim_hold_rope)
ssntowp(290,1) endif END
PLOOP
if eq(v4,18) and ssnalive(291) then
teleport(8,1)
ssnanim(291,anim_hold_rope) endif
if chain then
ssnanim(291,anim_hold_rope)
ssntowp(291,1) endif END
PLOOP
if eq(v4,20) and ssnalive(292) then
teleport(9,2)
ssnanim(292,anim_hold_rope) endif
if chain then
ssnanim(292,anim_hold_rope)
ssntowp(292,1) endif END
PLOOP
if eq(v4,25) then
hidessn(304)
hidessn(316)
ssntowp(313,3)
ssnpspd(313,60)
ssncspd(313,60) endif END
Handle every stressful situation like a Dog....if you can't eat, hump it, or play with it, pee on it and walk away
- Country Joe-PG-
- Squad Member
- Posts: 2119
- Joined: Sun May 30, 2010 12:29 pm
- Location: USA