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 / Sitting script help

Author
Message
Candle_
18
Years of Service
User Offline
Joined: 29th May 2006
Location: kindergarten
Posted: 29th Mar 2007 19:33
I have him sitting down but when I add the chair so he can sit on it as you can see form the picture he is not sitting on it, and if I have the chair touching his legs he is kind of standing on it.
How do you get them to sit on the chair?

Attachments

Login to view attachments
rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 29th Mar 2007 21:19 Edited at: 29th Mar 2007 21:20
I think your problem here is with collision properties candle,maybe the chair is using 'box' instead of 'poly'.
Edit,maybe even try turning collision off completely for the chair to test this.
Candle_
18
Years of Service
User Offline
Joined: 29th May 2006
Location: kindergarten
Posted: 29th Mar 2007 23:10 Edited at: 29th Mar 2007 23:33
Thanks, I didn't think of that.
that work great.
just have to get him to move his head now.

Attachments

Login to view attachments
Candle_
18
Years of Service
User Offline
Joined: 29th May 2006
Location: kindergarten
Posted: 29th Mar 2007 23:45 Edited at: 29th Mar 2007 23:46
Well added this but he rotates the whole body and just not the head?
;Triggers
:plrcanbeseen:settarget,rotatetotarget,resethead
:plrdistwithin=200:rotatetoplr,resethead

:state=0:animate=10,state=1
:state=1:setframe=7
;End of Script

Nomad Soul
Moderator
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location: United Kingdom
Posted: 30th Mar 2007 00:17
You can also play around with a characters sitting position offset by changing the moveup=X value in the sitting.fpi script

;Artificial Intelligence Script

;Header

desc = Sitting

;Triggers

:state=0:moveup=-8
:state=0:animate=10,state=1
:state=1:setframe=7
;End of Script
Deathead
18
Years of Service
User Offline
Joined: 14th Oct 2006
Location:
Posted: 31st Mar 2007 15:22
Nomad tried it just to see what is like and its has a problem with the C++ Directory. Well i can go on FPSC but if i put that in C++ directory messes up and a error comes up with debug info 0.0!!!

PLS JOIN I really do
Nomad Soul
Moderator
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location: United Kingdom
Posted: 31st Mar 2007 19:04
Deathead

C++ directory ? Please explain

Download the attached sitting.fpi and put it in

C:\Program Files\The Game Creators\FPS Creator\Files\scriptbank\people

Then Load FPSC and right click character and reference sitting.fpi in the AI Main field.

Are you saying you have created a new folder called C++ and put it in there ?

Attachments

Login to view attachments
Nomad Soul
Moderator
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location: United Kingdom
Posted: 31st Mar 2007 19:05
I have a level where I needed an NPC sitting down and I used this script to place him on another entity object that was static. I found I needed to change the moveup=X value to -8 to get him to be positioned correctly without being in mid air, under or through the middle of that object.

See screenshot attached

Attachments

Login to view attachments
Candle_
18
Years of Service
User Offline
Joined: 29th May 2006
Location: kindergarten
Posted: 31st Mar 2007 21:23
Only thing I don't like is the arms out .

Login to post a reply

Server time is: 2024-11-27 08:19:02
Your offset time is: 2024-11-27 08:19:02