NPC question
#3

Quote:
Originally Posted by niels44
Посмотреть сообщение
when there's nobody in the vehicle, pause it:
https://sampwiki.blast.hk/wiki/NPC:PauseRecordingPlayback

when someone enters the vehicle( as passenger ), resume it

https://sampwiki.blast.hk/wiki/NPC:ResumeRecordingPlayback

you could use OnPlayerStateChange for this, or OnPlayerEnterVehicle.

you could also reset the npc and the recording, if the person exits the vehicle again, while its still playing.

or a command like, /stopnpc, which will pause the recording, so the player can exit the vehicle.
Can I use these functions in the gamemodes pwn? I thought you could only use the NPC: ones in the actual npcs script. Like how would I send data from the main game mode to the npcs script?
Reply


Messages In This Thread
NPC question - by random123 - 15.12.2013, 12:30
Re: NPC question - by niels44 - 15.12.2013, 12:39
Re: NPC question - by random123 - 15.12.2013, 13:09

Forum Jump:


Users browsing this thread: 1 Guest(s)