Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Thu Dec 26, 2024 9:50 pm
All times are UTC + 0
RA2 mission, Patrol team just deletes it self after attack.
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [6 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
MadHQ
Commander


Joined: 07 Nov 2003

PostPosted: Sat Nov 06, 2021 8:15 pm    Post subject:  RA2 mission, Patrol team just deletes it self after attack. Reply with quote  Mark this post and the followings unread

I have a Patrol team simple set up, the units patrol just fine tell they are attacked.

Once attacked they vanish... I am not sure why... The script does have move to way point, then delete team members. Does the move to way point get lost when I attack, then the delete just happens? How do I prevent that?

The script:
Move to way-point
Guard Area
Move to way-point
Delete team members



setup.jpg
 Description:
 Filesize:  181.26 KB
 Viewed:  2222 Time(s)

setup.jpg



_________________
MadHQ's Graveyard - Click here!
(Permissions) - (F.A.Q.)

Back to top
View user's profile Send private message Skype Account
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sun Nov 07, 2021 3:57 am    Post subject: Reply with quote  Mark this post and the followings unread

Delete removes the team from the map, if you just want the script to end, just leave the last move?

Can you explain what the move loop looks like?

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
E1 Elite
General


Joined: 28 May 2013

PostPosted: Sun Nov 07, 2021 4:04 am    Post subject: Reply with quote  Mark this post and the followings unread

Yes, move scripts forget current script action and executes next action when engaged.

Solution is to use multiple/repeated move action instead of just 1 or use CPU intensive patrol action.

Have given the behavior at - https://modenc.renegadeprojects.com/Aggressive

Back to top
View user's profile Send private message
MadHQ
Commander


Joined: 07 Nov 2003

PostPosted: Sun Nov 07, 2021 4:14 am    Post subject: Reply with quote  Mark this post and the followings unread

The loop works via repeating trigger every 150 timer ticks, a group of troops enter the map, moves to a way point, guards area, moves to way point off map then deletes it self, then when timer runs again another group enters... loop

Is that just not possible to do?

_________________
MadHQ's Graveyard - Click here!
(Permissions) - (F.A.Q.)

Back to top
View user's profile Send private message Skype Account
E1 Elite
General


Joined: 28 May 2013

PostPosted: Sun Nov 07, 2021 4:28 am    Post subject: Reply with quote  Mark this post and the followings unread

If you want the aggressive behavior of the team to engage enemy, use script like

Move to way-point1
Move to way-point1
Move to way-point1
Move to way-point1
Guard Area
Move to way-point2
Move to way-point2
Move to way-point2
Move to way-point2
Delete team members

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sun Nov 07, 2021 5:11 am    Post subject: Reply with quote  Mark this post and the followings unread

If your script is only guarding at one point, then I might recommend splitting the trigger, so that after so much time it recruits them to a leave map script. If they are dead, they won't be recruited.

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [6 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 2.6491s ][ Queries: 14 (2.4742s) ][ Debug on ]