Scripts / Spawn(e) ?

Author
Message
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 29th May 2014 20:34
anyone know what Spawn(e) does or how it works?

i thought it would create another entity (based on (e)) at the location the script is run from but it seems not?



i basically ran -





Hide(1)

Spawn(2)



from entity 1's location but nothing appeared there, how would i know the "spawned" entity number also?

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Dralel
GameGuru TGC Backer
11
Years of Service
User Offline
Joined: 4th Nov 2013
Location: UK
Posted: 29th May 2014 20:54
Spawn(e) I believe spawns the single entity that isn't automatically spawned when the map is loaded.

GPU: GTX 660, CPU: i7 3770 Intel 3.40ghz x4, PSU: 650 Watt, RAM: 8GB DDR3, OS: Win7 Ultimate 64-bit
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 29th May 2014 21:02
ah yes i completely forgot there's an option in the right click menu to turn off "spawn at start" - that is indeed what it does, not what i was hoping it would do but thanks

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 1st Jun 2014 19:53
I tried using the don't spawn at start , but it always seems to spawn regardless. I've compromised by using hide/show.



SPECS: Q6600 CPU. Nvidia 260GTX. 8 Gig Memory. Win 7.
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 1st Jun 2014 19:56
really? i think it's only the stock enemies that have this issue because they still have hard coded scripts that over-ride it

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 1st Jun 2014 20:00
Quote: "I tried using the don't spawn at start , but it always seems to spawn regardless. I've compromised by using hide/show."

Works just fine, it is probably the script

Try it without script to test.

A funny thing happened on the way to the forum...
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 2nd Jun 2014 18:14
It was stock enemies I was using Still, no closer to getting an enemy to drop something I may just forget it for now. The spawn option does work on normal objects by the looks. I was only working with characters.



SPECS: Q6600 CPU. Nvidia 260GTX. 8 Gig Memory. Win 7.
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 2nd Jun 2014 19:32
Quote: "It was stock enemies I was using Still, no closer to getting an enemy to drop something I may just forget it for now. The spawn option does work on normal objects by the looks. I was only working with characters."


http://fpscrforum.thegamecreators.com/?m=forum_view&t=207801&b=2&msg=2488745#m2488745

i already made a loot script, they just don't have an actual item drop - just a prompt when you are close to the dead body

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11

Login to post a reply

Server time is: 2024-12-22 05:50:46
Your offset time is: 2024-12-22 05:50:46