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
Easy Interaction/Physics Question
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Easy Interaction/Physics Question

You shouldn't check the StaticPhysics thing. Make a script area at the player's start area named "StaticEntity". Name your another script area named "DynamicEntity". This is the ScriptArea that will make the beam to be able to interact again . Here is the script.
PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""StaticEntity""SetEntityNoInteract"true1);           
AddEntityCollideCallback("Player""DynamicEntity""SetEntityInteract"true1);
}

void SetEntityNoInteract(string &in asParentstring &in asChildint alState)
{
    
SetEntityInteractionDisabled("wood_beam_29"true);
}

void SetEntityInteract(string &in asParentstring &in asChildint alState)
{
    
SetEntityInteractionDisabled("wood_beam_29"false);

Hope this helps.

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 03-14-2013, 08:39 AM by PutraenusAlivius.)
03-14-2013, 08:39 AM
Find


Messages In This Thread
RE: Easy Interaction/Physics Question - by PutraenusAlivius - 03-14-2013, 08:39 AM
RE: Easy Interaction/Physics Question - by NaxEla - 03-14-2013, 08:47 AM



Users browsing this thread: 2 Guest(s)