NPC Job
#1

Some servers dont use pickup and labeltext to joinjob. They use NPCs. NPCs do nothing. Stand and wear skin. When we click RMB (Rigth Mouse) with Y, we will see the dialog with joinjob, quitjob. Who have it, plz share 4 me. Sorry for my bad English.
Reply
#2

These are not actually NPCs, they are called 'Actors'.

You can create an actor using CreateActor.

You can also use OnPlayerKeyStateChange to detect if a player is pressing 'KEY_YES' (default button 'Y'), and then use GetPlayerTargetActor to see if that player is also holding RMB (aiming / targeting) at an actor.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)