help with bot
#1

Well it seems that the source script of the bot (the script in the npcmodes folder) is not even running?

Код:
main(){ print("hey"); }
Does not display..

Код:
public OnNPCEnterVehicle(vehicleid, seatid)
Not getting called...(or any other callback)

What is happening and how can I fix this? Thanks.

(and yes I am using ConnectNPC correctly)
Reply
#2

Do you have a gamemode with a login/register system? If so, you gotta make a "if" event to let him go through it
Reply
#3

Quote:
Originally Posted by anumaz
Посмотреть сообщение
Do you have a gamemode with a login/register system? If so, you gotta make a "if" event to let him go through it
Yes I do, but that isn't the problem. The bot connects and spawns fine. The npcmode script just doesn't do anything.

OnNPCEnterVehicle - not called
OnNPCConnect - not called
main() (in the npcmode script) - not called

So I have a feeling that NOTHING from the bot source is getting executed.
Reply
#4

OnNPCModeInit
OnNPCModeExit
OnNPCConnect
OnNPCDisconnect
OnNPCEnterVehicle
OnNPCExitVehicle

don't seem to be called, i just reported it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)