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
Possible to repeat script With.._
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#4
RE: Possible to repeat script With.._

I don't think they used those kinda cannons during WW2...

But nevertheless, if you want one script that repeatedly fires a cannonball, create a function that does so. Start off with something like

PHP Code: (Select All)
void FireCannon()
{
    
//Do something.


In there you tell it to create a cannonball entity, push it away, play sounds, particles, use timers to make it work better etc. Then, whenever you need to fire a shot, just call FireCannon();

You do not need to use in-editor cannonballs, because those will run out. You're better off creating one through script.

(This post was last modified: 04-15-2015, 07:46 PM by Mudbill.)
04-15-2015, 07:46 PM
Find


Messages In This Thread
RE: Possible to repeat script With.._ - by Mudbill - 04-15-2015, 07:46 PM



Users browsing this thread: 1 Guest(s)