Product Chat / Destroy one object to spawn another ?

Author
Message
ShN33Ky
Game Guru Backer
11
Years of Service
User Offline
Joined: 24th Mar 2013
Location: San Clemente ca.
Posted: 22nd Mar 2015 17:14
It was nice in FPSC classic! To be able to destroy lets say a door then another door would appear on the floor emmediately after the 1st door Disappeared! Does anybody know how to do this with GG?

.....I know I can spawn just about anything with a triggerzone but I'm looking for the special effect thing!


Any help is appreciated..
sHn33Ky

ShN33Ky
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 23rd Mar 2015 02:06
Well, I would have both in place. One hidden, the other showing. Then switch them. Hide the one visible, and show the hidden one. Easy enough with a bit of lua dabbling.


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.
ShN33Ky
Game Guru Backer
11
Years of Service
User Offline
Joined: 24th Mar 2013
Location: San Clemente ca.
Posted: 23rd Mar 2015 16:46
Yes in FPSC classic you used a destroy/activate script in the destroy section in property's!Then set the hidden entity to spawn after delay!Since there is no destroy section in the new GURU I need to know how to do this with lua ....
ShN33Ky
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 23rd Mar 2015 18:14
we have timers, we have ifused. Hmm I am sure it can be done. Did you try asking on the script board?
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 23rd Mar 2015 18:16
Hide(e)
Destroy(e)

there's no way to duplicate an entity currently though so you'll need a new entity already placed to then Show or instead of destroying the previous you can rotate/move it to become the new 1... depending on what you want to achieve

i dont have classic but it sounds like you want to blow a door off it's hinges type effect so you could use a script to rotate the door about 90 degrees rather than using 2 doors for example (using a different state to stop it from being opened again.
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
ShN33Ky
Game Guru Backer
11
Years of Service
User Offline
Joined: 24th Mar 2013
Location: San Clemente ca.
Posted: 23rd Mar 2015 19:23
@ smallg.....you hit it on the nose as toward the effect I am looking for! To be more specific I am trying to destroy a submarine so after it explodes it turn'd on it's side and at an angle to appear that it is floating on the water and slowly sinking!

@Pirate Myke....I will probably try the script board like I should have done in the 1st place! But I am completely new to the lua scripting ! Right now I am hung up on trying to destroy the submarine with the RPG.....for some reason the rockets will not destroy the submarine but I can with a gun.This mite be an RPG thing so perhaps the team mite look into that....

TY for trying to help guy's...
ShN33Ky
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 23rd Mar 2015 22:23
ive had that happen where the rpg just goes through an object, not sure why it happens but try restart GG or delete the entity and place a new 1 - that normally fixes it.

definitely going to need to script that, here's a start (the settings arent exact figures and the effect will change depending on fps so you'll have to play around with them until it looks ok on your average frame rate)
sinking_sub.lua



life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
rolfy
17
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 23rd Mar 2015 22:36
Darn! smallg, but your good at this
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 24th Mar 2015 06:15
Great stuff, you just keep coming out with it.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 24th Mar 2015 06:46
@ smallg
Your really are the user of the month!
Well done!

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 8.1 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 24th Mar 2015 08:54
Thanks to smallg I knowing now how to destroy any sub. from enemies submarine base
Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."
ShN33Ky
Game Guru Backer
11
Years of Service
User Offline
Joined: 24th Mar 2013
Location: San Clemente ca.
Posted: 24th Mar 2015 14:37
Thank you smallg that is wonderful work.....

I have a game for you all!

It will be ready this weekend.....
ShN33Ky

Attachments

Login to view attachments
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 24th Mar 2015 15:44
thanks, happy to help and hopefully that little script proves LUA scripting doesnt need to be long to be effective
does show the need to rotate something locally though, the current commands rotate based on the world axis and as you can see depending on the starting rotation of an object this gives different results
or the ability to find out the current rotation of an object may help but i'm sure it'll come eventually, only a minor issue
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 29th Mar 2015 22:02 Edited at: 29th Mar 2015 23:43
Your sinking_sub.lua was inspired me to make a new level mission for my Commando series. I've named "U-boats Citadel".
Great work smallg !
Also, for this amazing script I created a special audio effect (attached and free for use because is made by me) and you can hearing it in a video below



Look at this script "heligoing.lua" - for ally helicopter that has drop player near the enemies' zone then it returns to base
Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."

Attachments

Login to view attachments
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 30th Mar 2015 02:31
Another nice display Larry, great job again.

Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 30th Mar 2015 22:16
Nice looking game there Larry. Shows off that script nicely. Must have took some doing so far, it's pretty long!


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 31st Mar 2015 11:30 Edited at: 31st Mar 2015 12:40
Thanks guys ! Those great scripts from this great community help me very well to make my own decently game levels.
Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."

Login to post a reply

Server time is: 2024-05-06 10:30:13
Your offset time is: 2024-05-06 10:30:13