Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Spawning Enemy using a script

Author
Message
ozziedave
18
Years of Service
User Offline
Joined: 20th Apr 2006
Location: Australia
Posted: 18th May 2010 12:15
Hi all,

I would like to Spawn an enemy from a script, not a trigger.

I want a talking Charactor, and when text talk finished an
enemy is spawned.

Thanks
bobochobo
16
Years of Service
User Offline
Joined: 9th Jul 2008
Location: My house, in the middle of my street
Posted: 18th May 2010 23:35
Just make it so when he stops talking it increases the variable by one, and when the variable is equal to 1, an enemy spawns.

CrescentMoon
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location:
Posted: 18th May 2010 23:37 Edited at: 19th May 2010 00:52
Quote: "Just make it so when he stops talking it increases the variable by one, and when the variable is equal to 1, an enemy spawns."


I've been wondering, are there any variable tutorials out there? i'm having trouble working with globals and variables and stuff >//>

Also I'm not sure but I think I tinkered with this type of script before...

here:


that "should" spawn the entity (as long as you set the parameters properly, make sure it doesn't spawn on level start) once the player uses the object with that script.

[WIP] Paranorma Chapter 1, The Beginnings
Level 1: The Lobby - 25% Complete
ozziedave
18
Years of Service
User Offline
Joined: 20th Apr 2006
Location: Australia
Posted: 19th May 2010 02:29
thanks bobochobo and crescentmoon,

crescentmoon thanks for your script, I have attached a doc file on variables, it is not my work, but the name of the writer escapes me.

Cheers

Attachments

Login to view attachments
CrescentMoon
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location:
Posted: 19th May 2010 02:43
Much appreciated...now if I could only figure out how to give players items with scripts (like using a safe to give a weapon) I'd be all clear to complete my game's first level!

[WIP] Paranorma Chapter 1, The Beginnings
Level 1: The Lobby - 25% Complete

Login to post a reply

Server time is: 2024-11-25 00:36:29
Your offset time is: 2024-11-25 00:36:29