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
repeating+Adding on script looks impossible?!
Casotime1999 Offline
Junior Member

Posts: 23
Threads: 6
Joined: Mar 2015
Reputation: 0
#2
RE: repeating+Adding on script looks impossible?!

but if you make an area with An AddEntityCollideCallback and you say at the cannon:
if the area matches with the cannon what should you do?
create the timer inside the block:
void OnStart()
{
AddEntityCollideCallback("", "cannon", "cannonshootArea", "ShootCannon", false);
}
void ShootCannon(string &in asParent, string &in asChild, int alState)
{
//inside this block you put the timerScript with a name
}
void exTimer(string &in asTimer)
{
if(asTimer=="name")
//AddPropForceScript
//Timer as the ball is turning off
if(asTimer=="name2")
{
//disable ball
//turn off the PropForce put as the coordinates as the cannon
//timer active the ball
}
if (asTimer=="Timeractiveball")
//SetEntityActive("ball", true);
//regive back the addPropForce
//reloop timer1
}
I tried to give a Hint but I think that is all you want(sorry for my bad english)
05-20-2015, 09:14 PM
Find


Messages In This Thread
RE: repeating+Adding on script looks impossible?! - by Casotime1999 - 05-20-2015, 09:14 PM



Users browsing this thread: 1 Guest(s)