Jump to content
matte31

Delaying unit time from purchase/order

Recommended Posts

Yes, actually. A line in each vehicle spawn script can do it.

Find the last "PushActionShowHide" command before the Lights/Sirens/Move commands, and insert a "PushActionWait" in front of it, like so:

n.PushActionTurnTo(ACTION_APPEND,Rotate);
n.PushActionWait(ACTION_APPEND,5.0f);
n.PushActionShowHide(ACTION_APPEND,false);

The numerical value is time in seconds you want to delay the vehicle appearing and carrying out further actions.

Link to comment
Share on other sites

On 2/5/2023 at 12:51 PM, The Loot said:

Yes, actually. A line in each vehicle spawn script can do it.

Find the last "PushActionShowHide" command before the Lights/Sirens/Move commands, and insert a "PushActionWait" in front of it, like so:

n.PushActionTurnTo(ACTION_APPEND,Rotate);
n.PushActionWait(ACTION_APPEND,5.0f);
n.PushActionShowHide(ACTION_APPEND,false);

The numerical value is time in seconds you want to delay the vehicle appearing and carrying out further actions.

He mean's from the standard buy menu, Not by command.

I am also searching this,

Link to comment
Share on other sites

On 2/18/2023 at 10:44 AM, The Loot said:

Well, there's the method used in the old NYC mod: a script that constantly scans an area containing the map spawn points for units, and then runs commands like those I mentioned when it detects a unit there. Could take a look at that.

Thank you!

Do you have a url for this mod?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...