Making placeables say stuff randomly overhead?
Ugly_Duck
Member Posts: 182
I'm trying to make placeables speak overhead text. I can't figure out how to do this even with LS's script generator. Any help would be great.
0
Comments
If the placeable is not running the script
AssignCommand(oPlaceable, SpeakString("hello world"));
Depends on how you want it to happen. The placeable object's OnHeartbeat might work the best, but the heartbeat is every 6 seconds. The following would make the object speak a random string every heartbeat:
If you wanted a longer time in between each spoken string then you would do something like so:
The second script fires after however many heartbeats. In this case after 5 heartbeats (5 x 6 seconds = 30 seconds). You cold also throw in a random amount of heartbeats so it's not exactly every 30 seconds, etc.