The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
The simple button...
SLi78 Offline
Junior Member

Posts: 23
Threads: 6
Joined: Sep 2010
Reputation: 0
#1
The simple button...

... isnt simple

Hi there,

i've set an entity of the simple_button in my room.


.jpg   Unbenannt.JPG (Size: 180.64 KB / Downloads: 227)

And some simple code to test.

void Button1Func(string &in entity, string &in type)
{
    AddPlayerBodyForce(20000,0,0,true);
}

void OnStart()
{
    SetEntityActive( "button_simple_1",true);
    SetEntityConnectionStateChangeCallback("button_simple_1", "Button1Func");
    SetEntityInteractionDisabled("button_simple_1", false);

    
}

My problem that the Button isn't usable, i mean the "Useicon" doesn't appear, so i cant test my code.

I thought, at least i could press the button, because its a button...

... but that isn'tSad

Tips and Hints are welcome as always
09-27-2010, 07:00 PM
Find


Messages In This Thread
The simple button... - by SLi78 - 09-27-2010, 07:00 PM
RE: The simple button... - by mansarde - 09-27-2010, 07:27 PM
RE: The simple button... - by SLi78 - 09-29-2010, 06:19 PM
RE: The simple button... - by mansarde - 09-29-2010, 07:18 PM



Users browsing this thread: 1 Guest(s)