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
Making an entity fly
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#5
RE: Making an entity fly

void OnStart()
{
AddEntityCollideCallback("Player", "script_push_player1", "push_player_close_lock_door1", true, 1);
}

void push_player_close_lock_door1(string &in asParent, string &in asChild, int alState)
{
    float mult = 1500.0f;
    AddPlayerBodyForce("-54.25", "0", ""-0.3, false);
}

The yellow dot is were the player will be pushed to. I draged the door and placed it where i wanted the player to be pushed to and then took the coordinates.
Spoiler below!

[Image: pushc.png]

Uploaded with ImageShack.us


This is my pic of where to be pushed and where you're gonna get pushed. Is it alright?

[Image: 44917299.jpg]Dubstep <3
(This post was last modified: 05-27-2011, 02:27 PM by xtron.)
05-27-2011, 02:27 PM
Find


Messages In This Thread
Making an entity fly - by xtron - 05-26-2011, 08:11 PM
RE: Making an entity fly - by Apjjm - 05-26-2011, 08:18 PM
RE: Making an entity fly - by xtron - 05-26-2011, 08:22 PM
RE: Making an entity fly - by Apjjm - 05-26-2011, 11:07 PM
RE: Making an entity fly - by xtron - 05-27-2011, 02:27 PM
RE: Making an entity fly - by Apjjm - 05-27-2011, 03:28 PM
RE: Making an entity fly - by xtron - 05-27-2011, 11:04 PM



Users browsing this thread: 1 Guest(s)