Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink

You are not connected. Please login or register

Unity Ninja Unity 3D Forum » FREE Project Downloads & Recources » Scripts » [HELP] Titanfall-like wallrunning script

[HELP] Titanfall-like wallrunning script

View previous topic View next topic Go down  Message [Page 1 of 1]

1 [HELP] Titanfall-like wallrunning script on Sun Nov 08, 2015 8:06 pm

RAZ3 Apex


Member [Lv. 1]
Member [Lv. 1]
I need help creating a wallrunning script similar to titanfall

View user profile

2 Re: [HELP] Titanfall-like wallrunning script on Tue Nov 10, 2015 7:52 pm

RAZ3 Apex


Member [Lv. 1]
Member [Lv. 1]
Anyone have any scripts/links to scripts?
(I'm a n00b with scripting)

View user profile

3 the noob option on Thu Nov 12, 2015 2:35 am

01189998819991197253


Member [Lv. 0]
Member [Lv. 0]
Hi RAZ3, a am also a noob at scripting and what you are asking for is pretty high level stuff, you could however attempt to make a wall running animation and set up box colliders on the walls you wish to run on and checking the is trigger box. by using a script that tells the animation to play when the character enters the collider you could have it appear as if the player is wall running but it will not be able to adapt to different lengths of wall.

public animator anim

void start()
{
anim = getcomponent<animator>
}
void onTriggerEnter()
{
anim.play("nameofanimation", -1, 0f);
}

/// script is a guide only and will not work without setting up an animator first, also the whole public class stuff isn't there either, but good luck

View user profile

4 Re: [HELP] Titanfall-like wallrunning script on Sun Feb 21, 2016 3:52 pm

joe2134254676879080-9


Member [Lv. 2]
Member [Lv. 2]
#pragma strict
var MainPlayer : GameObject;
function Start () {

}

function Update () {

}

function OnTriggerEnter (info : Collider){
MainPlayer.rigidbody.useGravity = false;
}
function OnTriggerExit (info : Collider){
MainPlayer.rigidbody.useGravity = true;
}


use this just make a second collider and set it as trigger put on script assign mainplayer and vola your done

View user profile

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum