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.._
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#5
RE: Possible to repeat script With.._

(04-15-2015, 07:46 PM)Mudbill Wrote: 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.

Oh thanks, i will try it tomorrow!!
but i have another Question, about custom models, i made Spikeball thing, and i want it to let it move (from the script) and i heard you NEED to make the object Statecallback or something like that, what do i have to do?! now, the model works it;'s static, and the only 2 checkbox in "entity" is Affected by decal and something else, can i still make it move (with move, i mean it goes from mid to right, from right to left, from left, to right, from right to left ETC the whole time... can i make something like that in script?! i succesfully made the model, without any tutorials ( i was watching your tutorial, some days ago ) i didn't knew it would work, but yeah, i made a model within 25 min, i'm really happy, the texture also works, and the export etc worked aswell, i made the collision box > body etc, but is it possible to make it move, or do i need statecallbakc, so yeah, how....

Edit-Also : "I don't think they used those kinda cannons during WW2..."
I know xd, but there isn't any other good looking cannon in amnesia Sad and if the "fog" works good, then the you can't see the cannon's really good, because you're standing somehwere where you can't see the 2 cannons beside you, but with fox, i can "hide" the cannon a little bit on the other castle, but the fox is TOOOO much, or i don't know how to make it normal..> (srry for bad English)
(This post was last modified: 04-15-2015, 08:27 PM by Amnesiaplayer.)
04-15-2015, 08:26 PM
Find


Messages In This Thread
RE: Possible to repeat script With.._ - by Amnesiaplayer - 04-15-2015, 08:26 PM



Users browsing this thread: 1 Guest(s)