Page 1 of 1

Attaching Scripts to Characters and Objects

Posted: October 5th, 2010, 3:49 am
by ozziedave
:( Dear SandBox Developers,

Please could you show me in simple terms, how you attach a script to a Character or Object in SandBox 2.6.

I have got as far as in Editing Mode opening ‘Editing Gui’ Then ‘Ents’ now in ‘Master Chef Ogro’ doing the above gets you to ‘New Spawn Entity’ but in the
latest version of Sandbox 2.6 you can only get ‘ New RespawnPoint’ as I only have 2.6 how please do I attach a script’s as shown below to a Character or
an Object.

I have noticed that in Editing mode, when you place the mouse pointer over a character/Object the name of the script title appears, this is a puzzle to
me how you get this to happen.

Many Thanks…..Ozzie

spawn_apple = [
r_type $ENT_ITEM
r_name "Cortland apple"
r_icon "red_apple"
r_model "tentus/food-drink/apple"
r_description "Nutritous, delicious and it's not even fictitious."

r_item_weight 1

r_interact [
r_select $rpginteract
r_pickup $rpgself
]
]

spawn_pie = [
r_type $ENT_ITEM
r_name "Apple pie"
r_icon "pie"
r_model "tentus/food-drink/pie"
r_description "Now with freshly peeled and baked apple goodness"

r_item_weight 3

r_interact [
r_select $rpginteract
r_pickup $rpgself
]
]

spawn_elder = [
r_name "Elder Maven"

r_interact [
r_face $rpginteract
r_select $rpginteract
r_face $rpgself
r_talk $rpgself
]

r_say "Hello there child, what can I do for you to do" [ // 0
r_response "Nothing at the moment, goodbye elder." -1
]

]

Re: Attaching Scripts to Characters and Objects

Posted: October 5th, 2010, 6:13 am
by daltonds1
2.6 or 2.5

Re: Attaching Scripts to Characters and Objects

Posted: October 5th, 2010, 5:20 pm
by ozziedave
2.6, there appears to be no help for script implementation !!!

Re: Attaching Scripts to Characters and Objects

Posted: October 6th, 2010, 3:45 pm
by daltonds1
Because 2.6 just came out a few days ago :)

I would go with 2.5 for now 2.5 is just as good