Frictional Games Forum (read-only)

Full Version: Repeat a Script Function?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello!
i have 1 question about my cannon (downloaded)
it can shoot balls ( you must place an area and the ball (inactive) )
is it possible that the cannon shoot EVERY TIME a cannonball... (without adding 9999 cannonballs but just 1 cannonball and repeat that..
How are the balls inserted? Is it an AddUseItemCallback?
AddEntityCollideCallback...
You can try ResetProp("CannonBall");

If that doesn't work, you can try to CreateEntityAtArea("CannonBall", "cannonball.ent", "Area", false);

The parameters are internal name, entity file, area name, full game save. The last one can be changed to true, in which case it will save your cannonball's location when you re-enter the level. If you don't need it, don't use it.
Show us a picture please. it will make it easier to understand
What do i have to do ?

SetPlayerCrouchEnabled(true);
idk what Const bool means..
What gave you that idea? This has nothing to do with crouching.
Const bool simply means you need to input a boolean value (either true or false).
i want that a cannon shoot to me... and i don't want to die so i set the health thing to 1 and want that the player falls , en then tp's to an another place... and wake up.. BUT tp doesn't work -_- it says about my SWORD file ?! wth ?! and tells that i need voidonleave
(08-22-2014, 04:10 PM)Mudbill Wrote: [ -> ]What gave you that idea? This has nothing to do with crouching.
For some people going down is the solution for everything =p
yes i need that now , but it doesn't work Sad
Pages: 1 2