Jump to content
Guest Black_Rider91

Ask person, not vehicle

Recommended Posts

Guest Black_Rider91

This is an issue in la mod that if you click ''Ask Person'' it is only available for parked vehicles and not for people. I'm thinking of fix that, but I don't know how and if it's possible..

Thanks!

Link to comment
Share on other sites

indeed were able to fix this, most part will be in here

 		SetValidTargets(ACTOR_PERSON | ACTOR_VEHICLE);

ACTOR is standing for the target which is operatable to use the command on, in this case ACTOR_VEHICLE need's to be removed.

besides that you also need to change

		if (Caller->GetType()!=ACTOR_PERSON)
return false;

you can delete is but better is to make return false -> return true.

		if (Target->GetType() == ACTOR_VEHICLE)
{
Vehicle v(Target);
if (v.IsParking())
return true;

return false;
}

also this need to be changed or deleted, in this case i prefer deleting.

Remember to make a back-up case i'm not sure this all need to be done but this are the reasons i see what cause it. BTW i want to thank chase you brought me on a idea for the realism mod.danke.gif

Hope this will works

If it didn't use your back-up to restore the file but still hold your back-up save.

then open up the restored script and just delete this part

!p.CanBeAsked() ||

Link to comment
Share on other sites

Guest Black_Rider91

indeed were able to fix this, most part will be in here

 		SetValidTargets(ACTOR_PERSON | ACTOR_VEHICLE);

ACTOR is standing for the target which is operatable to use the command on, in this case ACTOR_VEHICLE need's to be removed.

besides that you also need to change

		if (Caller->GetType()!=ACTOR_PERSON)
return false;

you can delete is but better is to make return false -> return true.

		if (Target->GetType() == ACTOR_VEHICLE)
{
Vehicle v(Target);
if (v.IsParking())
return true;

return false;
}

also this need to be changed or deleted, in this case i prefer deleting.

Remember to make a back-up case i'm not sure this all need to be done but this are the reasons i see what cause it. BTW i want to thank chase you brought me on a idea for the realism mod.danke.gif

Hope this will works

If it didn't use your back-up to restore the file but still hold your back-up save.

then open up the restored script and just delete this part

!p.CanBeAsked() ||

Thaaanks a lot!! I'll try this, hope to fix this issue :cheers:

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...