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 Product Chat / (Help)Swicthing scripts in game

Author
Message
TheDesertEagle
14
Years of Service
User Offline
Joined: 7th Jul 2011
Location: Canada - Who knows where else???
Posted: 15th Jul 2011 18:02
Hey guys im new to FPS so i just wanna learn some stuff
anyways my question
is there a way to swicth entitys scripts in game in a trigger zone?
if so how

Joey-May god put mercy on my ally's
Desecrated Studios
15
Years of Service
User Offline
Joined: 16th Jan 2011
Location: Kirtona
Posted: 15th Jul 2011 18:10
I've always wondered the same thing, hopefully someone will figure it out because i don't know how

-Josh
Website is under construction
System Specs: AMD Phenom x3 2.2GHz, 4GB DDR2 RAM, 1TB HD, HD Radeon 5770 1GB, 22in Acer Monitor
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 15th Jul 2011 18:30
In the script that runs for that entity (usually the main script), you can "call" on another script to run with the "runfpi=" command. We've used it successfully, and it is mentioned in the script commands section of the guide.

- BlackFox
TheDesertEagle
14
Years of Service
User Offline
Joined: 7th Jul 2011
Location: Canada - Who knows where else???
Posted: 15th Jul 2011 20:58
yea i know its there but can i call it from a trigger event?

Joey-May god put mercy on my ally's
maho76
15
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 15th Jul 2011 23:53 Edited at: 15th Jul 2011 23:56
i think you can set it up with a setuptarget-activate-trigger or a globalvar-trigger. then add an activated=x(/varequal=x):runfpi=x in the mainscript, but i dont know if the main-script will stop running or still runs beside the second one. try it... and ask blackfox
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 16th Jul 2011 00:29
Quote: "yea i know its there but can i call it from a trigger event?"


It should work the same way as if the script was attached to a character rather than a trigger. I usually use the method on character scripts for in-game interaction based on the choices the player makes.

Quote: "i dont know if the main-script will stop running or still runs beside the second one."


From the setup in the scripting I have here, it appears that the script called runs and the previous script (original that did the calling) is terminated.

- BlackFox
TheDesertEagle
14
Years of Service
User Offline
Joined: 7th Jul 2011
Location: Canada - Who knows where else???
Posted: 16th Jul 2011 00:43
Thanks guys and 1 more question
can i create entitys in game?
it kinda seems in possible but i think it would happen in a trigger event this time

Joey-May god put mercy on my ally's
cause i wont
Plystire
23
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 16th Jul 2011 02:12
Quote: "can i create entitys in game?"


You can spawn entities by triggerzone via activation. Check out some of the tutorial vids on FPSC, and look into the spawn related options for the entity.


~Plystire

A rose is only a rose until it is held and cherished -- then it becomes a treasure.
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 16th Jul 2011 02:13 Edited at: 16th Jul 2011 17:08
Quote: "can i create entitys in game"


Are you referring to spawning an entity? Meaning, for example, you walk down a corridor, pass through a trigger, and a crate, character, or other dynamic entity enters the game?

If so, yes you can. Trigger, the script to activate the name of the entity in the IfUsed field of the trigger, and the entity (dynamic) placed on the map and configured to appear when the trigger is hit.

If that is not what you were referring to, I'm afraid more information is required.

- BlackFox
TheDesertEagle
14
Years of Service
User Offline
Joined: 7th Jul 2011
Location: Canada - Who knows where else???
Posted: 16th Jul 2011 04:40
@Black Fox
thanks black fox it works makes my game sooooo faster!



@Plystire
Plystire you made ply mod right?
is there a version for 1.18 or did you quit making ply mod?

Joey-May god put mercy on my ally's
cause i wont

Login to post a reply

Server time is: 2026-07-01 08:17:51
Your offset time is: 2026-07-01 08:17:51