Scripts / spawn an object?

Author
Message
mguy1122
Game Guru Backer
11
Years of Service
User Offline
Joined: 5th Mar 2013
Playing: witcher 3
Posted: 16th Nov 2014 20:36 Edited at: 18th Nov 2014 15:37
So I have this street that the player will be walking down and before they get to the cross section I wanted to have a car drive by and then disappear before they turn the corner. When I tried to set the car up on a trigger zone it doesn't seem to work. I made sure to set spawn at start to no but the car just starts driving by as soon as I start the level ignoring the trigger zone and the delay. Do non characters work with trigger zones or am I doing something wrong? any help would be appreciated, thanks!

edit: the trigger zone is working but the script that animates the object is stopping it from activating. I guess the real question is can an animated object be triggered or is it the script that stopping it?
PM
Jerry Tremble
GameGuru TGC Backer
11
Years of Service
User Offline
Joined: 5th Nov 2012
Location: Sonoran Desert
Posted: 16th Nov 2014 21:05 Edited at: 16th Nov 2014 21:08
I just tried it with a barrel and it worked correctly. I had never used a trigger zone before so really wasn't sure what I was doing, but I set the Barrel (Acid) 's properties to Spawn at Start = no, Spawn after delay = yes and number to spawn to 1. In the trigger zone, If Used = Barrel (Acid). Hope that helps.





EDIT: I just changed Spawn after delay to no and number to spawn to 0, and it still worked.

MAME Cab PC: i7 4770@3.4Ghz (passmark 9945), 12GB RAM, Win 8.1/64, GeForce GTX645 (passmark 1898); Shiny new laptop: i7 4800MQ@2.7Ghz (passmark 8586), 16GB RAM, Win 8.1/64, GeForce GTX870M (passmark 3598); Old laptop: i5@2.3Ghz, 8GB RAM, Win 7/64, Intel 3000 graphics
PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 16th Nov 2014 21:20
Sounds like it's spawned from the start, as Jerry says should be easy enough to get going.



SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.
mguy1122
Game Guru Backer
11
Years of Service
User Offline
Joined: 5th Mar 2013
Playing: witcher 3
Posted: 16th Nov 2014 23:08
I took out the script that makes the car move and tried the trigger zone and it worked. So I guess the real problem would be why is the script stopping the trigger zone from working? Here's the script if anyone would be willing to try it and see if they could get it working with the trigger zone. Thanks for the help guys!

Attachments

Login to view attachments
PM

Login to post a reply

Server time is: 2024-05-02 09:58:24
Your offset time is: 2024-05-02 09:58:24