Raised This Month: $12 Target: $400
 3% 

Solved Urgently needed help !!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Paimon
Member
Join Date: Jul 2021
Location: Zootopia
Old 07-01-2023 , 08:07   Urgently needed help !!
Reply With Quote #1

Could anyone tell me if I want to use this:
PHP Code:
ZombieBotLocomotion::ClimbLadder(CNavLadder const*,CNavArea const*) 
What should I pass to SDKCALL? What is CNavLadder and CNavArea?
Could I pass ladder entity to CNavLadder? Or should I pass an address? Is CNavArea an address? Please tell me!!

And I also found this
PHP Code:
CNavMesh::FindNavAreaOrLadderAlongRay(Vector const&,Vector const&,CNavArea **,CNavLadder **,CNavArea *) 
If I call it, could I get CNavArea and CNavLadder?

I would be appreciated if someone could tell me!!

Last edited by Paimon; 07-26-2023 at 04:03.
Paimon is offline
Sunny C.
Junior Member
Join Date: Jan 2022
Old 07-01-2023 , 09:45   Re: Urgently needed help !!
Reply With Quote #2

I am not knowledgeable about it at all, but I found this. Maybe it will help you further.

PHP Code:
// Example code for ZombieBotLocomotion::ClimbLadder

native void ZombieBotLocomotion::ClimbLadder(CNavLadderladderCNavAreaarea);

new 
CNavLaddernavLadder;  // Assuming you already have a valid CNavLadder object
new CNavAreanavArea;  // Assuming you already have a valid CNavArea object

public OnZombieClimbLadder()
{
    
ZombieBotLocomotion::ClimbLadder(@navLadder, @navArea);

PHP Code:
// Example code for CNavMesh::FindNavAreaOrLadderAlongRay

native void CNavMesh::FindNavAreaOrLadderAlongRay(Vectorin startPosVectorin endPosCNavArea@& out navAreaCNavLadder@& out navLadderCNavAreaignoreArea);

new 
Vector startPosendPos;  // Assuming you already have valid start and end positions
new CNavAreanavArea;  // The found navigation area will be stored here
new CNavLaddernavLadder;  // The found ladder will be stored here
new CNavAreaignoreArea;  // Optional: A navigation area to be ignored

public OnRaycast()
{
    
CNavMesh::FindNavAreaOrLadderAlongRay(startPosendPos, @navArea, @navLadderignoreArea);

    
// You can use the found navigation areas (navArea) and ladders (navLadder) here

Sunny C. is offline
Paimon
Member
Join Date: Jul 2021
Location: Zootopia
Old 07-01-2023 , 11:52   Re: Urgently needed help !!
Reply With Quote #3

Quote:
Originally Posted by Sunny C. View Post
I am not knowledgeable about it at all, but I found this. Maybe it will help you further.

PHP Code:
// Example code for ZombieBotLocomotion::ClimbLadder

native void ZombieBotLocomotion::ClimbLadder(CNavLadderladderCNavAreaarea);

new 
CNavLaddernavLadder;  // Assuming you already have a valid CNavLadder object
new CNavAreanavArea;  // Assuming you already have a valid CNavArea object

public OnZombieClimbLadder()
{
    
ZombieBotLocomotion::ClimbLadder(@navLadder, @navArea);

PHP Code:
// Example code for CNavMesh::FindNavAreaOrLadderAlongRay

native void CNavMesh::FindNavAreaOrLadderAlongRay(Vectorin startPosVectorin endPosCNavArea@& out navAreaCNavLadder@& out navLadderCNavAreaignoreArea);

new 
Vector startPosendPos;  // Assuming you already have valid start and end positions
new CNavAreanavArea;  // The found navigation area will be stored here
new CNavLaddernavLadder;  // The found ladder will be stored here
new CNavAreaignoreArea;  // Optional: A navigation area to be ignored

public OnRaycast()
{
    
CNavMesh::FindNavAreaOrLadderAlongRay(startPosendPos, @navArea, @navLadderignoreArea);

    
// You can use the found navigation areas (navArea) and ladders (navLadder) here

Thank you for telling me what do these params mean, it could be useful if I finally understand how to make SDKCALL for them
Paimon is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode