Gudlyf’s World

June 25, 2002

Filed under: General — Gudlyf @ 2:36 pm

Taken from Bioware forums:

1. Make a Chair placeable

2. Set the Chair to be useable

3. Put this script in the chair's onused hook:

void main()

{

object oPlayer = GetLastUsedBy ();

object oChair;

if (GetIsPC (oPlayer))

{

oChair = GetNearestObjectByTag ("Chair", oPlayer, 0);

if (GetIsObjectValid(oChair) && !GetIsObjectValid (GetSittingCreature (oChair)))

{

AssignCommand (oPlayer, ActionSit (oChair));

}

}

}

23 Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(required)

(required)


 
June 2002
S M T W T F S
    Jul »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Subscribe!
Subscribe with Feedburner


follow Gudlyf at http://twitter.com

-5, Troll

Site Meter

Creative Commons License
This work is licensed under a Creative Commons License.