Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Moving shelf via button
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#2
RE: Moving shelf via button

via button? why u use Collision Callback then?

use this

void OnStart()
{
SetEntityConnectionStateChangeCallback("BUTTONNAMEHERE", "func_shelf");

}


void func_shelf(string &in asEntity, int alState)
{
if (alState == 1)
{
SetMoveObjectState("SHELFNAMEHERE",1.0f);
PlaySoundAtEntity("", "quest_completed.snt", "shelf_move_1", 0, false);
return;
}
}


Editing the footage i got from the livestream btw XD



________________________________________________
Apparently this doesn't work ^^, so im stumped for answers. Statyk, russ, flames, anyone?

Unless its the no spaces after the commas...

Just figured it out, wrong syntax

void rotate(string &in asParent, string &in asChild, int alState)

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
(This post was last modified: 01-21-2012, 05:47 AM by Tripication.)
01-21-2012, 05:23 AM
Find


Messages In This Thread
Moving shelf via button - by Quotentote - 01-21-2012, 05:19 AM
RE: Moving shelf via button - by Tripication - 01-21-2012, 05:23 AM
RE: Moving shelf via button - by flamez3 - 01-21-2012, 05:47 AM
RE: Moving shelf via button - by triadtimes - 01-21-2012, 05:57 AM
RE: Moving shelf via button - by Quotentote - 01-21-2012, 06:09 AM



Users browsing this thread: 1 Guest(s)