- This topic has 8 replies, 4 voices, and was last updated 13 years, 6 months ago by .
Tutorial: How to Implement a Sitting Script
Thank you very much, i was looking for this in my mod, maybe i can delay the release and add it
” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/biggrin@2x.png 2x” width=”20″ height=”20″>
Could you attach smoking script as well and tell how to execute it ?
” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″>
Well, if you want to use a smoking script outside of a cutscene – you’ll have to hold perfectly still as to not cause Tommy to return to the normal playing state, which is why I don’t really recommend doing that. If you want a smoking script to use in say Freeride, I’d recommend having one that plays for a certain amount of time. This can easily be done, but you’ll need to decide as to whether you want it to play for a certain amount of time outside of a cutscene or if you want it for a game sequence during a dialogue or something like that.
All you’d need to do to make Tommy sit still during an animation is “player_lockcontrols 1”
Yeah, I know – but then you need to decide how long you want him to stand a-smokin’.
I want to have a separate smoking script to use in Free Ride.
Could you take it down here ?
Yeah’ date=’ I know – but then you need to decide how long you want him to stand a-smokin’.[/quote’]
You could implement a “ctrl_read” script so that you could press the action button whenever you felt like it and he would stop and get up again.
Then he’ll start smoking as soon as he’s not using any controls.
- You must be logged in to reply to this topic.
