Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Sleeping or lying on the floor

Author
Message
Sidh Jay
5
Years of Service
User Offline
Joined: 10th Aug 2013
Location:
Posted: 2nd Dec 2013 14:46
Hi can anybody guide me for sleeping script or something similar
thanks in advance

Sidh
Pirate Myke
8
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 3rd Dec 2013 07:00
Who's sleeping? NPC or Player? More details please.

Custom or Stock NPC's?

Sidh Jay
5
Years of Service
User Offline
Joined: 10th Aug 2013
Location:
Posted: 3rd Dec 2013 08:29
@Pirate Myke

thnx for reply

I would like an npc to sleeping

Sidh.
Pirate Myke
8
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 3rd Dec 2013 15:52
Does the NPC have an animation for sleeping or laying down?

Will the NPC be getting up to attack the player after this?

Sidh Jay
5
Years of Service
User Offline
Joined: 10th Aug 2013
Location:
Posted: 3rd Dec 2013 17:34
No he wont attack
i just need that he should be lying on the floor or sleeping

thanks for your concern
Pirate Myke
8
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 4th Dec 2013 00:42
Ok. You can use the default.fpi script in the main ai of the NPC.
Open the fpe file and set ischaracter=0
Remove the shoot script and have the destroy script to dissapear1.fpi

Place NPC in the editor, use the <1, 2, 3, 4, 5, 6> keys to rotate the NPC to the position on the floor or where ever you want them.

Set immobile=0

see if it will stay as you like when you run the test game.

Hope that helps.

Login to post a reply

Server time is: 2018-09-25 14:47:00
Your offset time is: 2018-09-25 14:47:00