@4760 - I tried with moving the placeable a tiny bit, but that did nothing. In this case the area is a bit cramped where the placeable is situated, and it’s on the invisible platform that I finally after so many hours trying, managed to get right with the walkmesh helper, so I don’t want to fiddle too much unless I break everything again.
@Lance_Botelle - No, I have no other action.
Guys, I think I actually managed to solve it now. Instead of using gp_talk_object, I removed that, and then I did my own script which I put on OnLeftClick and it actually seems to work:
// gp_talk_object - modified script
/*
Script by andgalf. This script allows you to speak to an object that for some reason won't let you speak to it.
Set a conversation, set Usable to True, and attach this script to the OnLeftClick event. Set a waypoint really close to the object. Do not use the stock gp_talk_object script on the OnUsed event in this case.
The ClearPendingActions function by 4760.
*/
void StartTheConv()
{
object oPC = GetFirstPC();
ActionStartConversation(oPC);
}
void ClearPendingActions(object oPerson, object oWP)
{
// just to make sure we're right on the spot
if (GetCurrentAction(oPerson) == ACTION_MOVETOPOINT)
{
//SendMessageToPC(GetFirstPC(), "Timing issue!");
AssignCommand(oPerson, ClearAllActions());
}
AssignCommand(oPerson, ActionJumpToLocation(GetLocation(oWP)));
}
void main()
{
object oPC = GetFirstPC();
object oWP = GetObjectByTag("console_wp");
AssignCommand(oPC, ClearAllActions());
DelayCommand(0.1, AssignCommand(oPC, ActionMoveToObject(oWP,TRUE)));
DelayCommand(1.6, AssignCommand(oPC, ClearPendingActions(oPC,(oWP))));
DelayCommand(1.7,StartTheConv());
}
I’ll see if I can modify this a little, by using your function @4760 for ClearPendingAction or what it was called. I just need to look at my previous modules and see if I can find that, so that the PC first tries to walk/run towards the placeable before jumping (if the walking fails).
Anyways, thanks for trying to help, both of you.
EDIT: Updated the script with @4760’s function. Works great now.
EDIT2: Updated the description of the script since it says to use it on the OnClick when it should be OnLeftClick.