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 / (Question) How to use the if used zone on an entity

Author
Message
TheDesertEagle
14
Years of Service
User Offline
Joined: 7th Jul 2011
Location: Canada - Who knows where else???
Posted: 27th Sep 2011 17:58
How do i use the if used zone in a entity

thanks!

Joey-May god have mercy upon my enemies, because I won't.
Favourite Game-Call Of Duty MW2
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 27th Sep 2011 19:27
This can be used in a variety of ways. One of the methods we employ is when the player is "interacting" with a computer console. The console is set dynamic and the script is created, showing the huds and going through the motions. At the end of the script, we have the "activateifused=1" in the script, and that will activate the name of the item we place in the IfUsed field of the entity.

Breakdown of my explanation...

1. Player approaches a computer console and there is some interaction with huds.

2. At the end of the interaction, the script for the console runs the "activateifused=1" command, which will spawn the "key" entity I have in the map. The name "key" is put in the IfUsed field of the computer console.

3. In the key entity, I set the spawn at start to No. When the console activates the key, the key appears.

Hopefully I have given an easy example.


Twitter: @NFoxMedia
TheDesertEagle
14
Years of Service
User Offline
Joined: 7th Jul 2011
Location: Canada - Who knows where else???
Posted: 27th Sep 2011 19:34
Thanks for answering it worked.

Joey-May god have mercy upon my enemies, because I won't.
Favourite Game-Call Of Duty MW2

Login to post a reply

Server time is: 2026-07-01 10:45:32
Your offset time is: 2026-07-01 10:45:32