Scripts / Trigger point seems to become unactivated when I move further away.

Author
Message
mnemonic
17
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 19th Jun 2014 22:07
Hi. I just discovered something weird. I've written a script that prompts the players X position. I want the prompt to be visible regardless of where I am on the map. To accomplish this I have placed out a trigger point at an arbitary position on the map, with my script as main script. Well,,,, the prompt is visible when I'm nearby the trigger zone. (I don't have to be within it's boundaries) But when I move away, at a distance, the prompt disappears.
Why is that? The script looks like this:



www.memblockgames.com
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 20th Jun 2014 00:10
http://fpscrforum.thegamecreators.com/?m=forum_view&t=208975&b=2

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
AuShadow
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd Dec 2013
Location: Australia
Posted: 20th Jun 2014 08:04
set the entity to always active = yes in the entity property menu

PC Specs: Windows 7 home 64-bit, Amd 7900 3gb DDR5 graphics, 8gb DDR3 Ram, Intel i7 3.4ghz

Feel free to visit and edit the public FPSCR resource wiki page: http://fpscrresource.wikispaces.com/home
mnemonic
17
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 22nd Jun 2014 20:12
Yes but always active is under physics, and this is just a trigger point which has no always active property. I just want this script to display this variable wherever the player is on the map. This worked in fpsc classic.

www.memblockgames.com
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 22nd Jun 2014 20:57 Edited at: 22nd Jun 2014 20:59
so use a normal entity (you can just use Hide(e) inside the script if u dont want it to be seen - or use something already on the map such as a building or tree)

or i believe you can stretch the zone all over the map and it'll stay active... but it'll be ugly in the editor

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Auger
13
Years of Service
User Offline
Joined: 21st Aug 2011
Location: Out There
Posted: 23rd Jun 2014 06:52
I just added all my sound/trigger zones to objects for my entry after all the zones failed. I placed them on a bunch of flowers.

Auger

Login to post a reply

Server time is: 2024-10-18 08:15:31
Your offset time is: 2024-10-18 08:15:31