OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: LCD on 03 Oct 2007, 21:27:43

Title: Stick map cutrsc 2 unit solved
Post by: LCD on 03 Oct 2007, 21:27:43
im tryin 2 make some kind of my own GPS (2 make a tracker...) and i created a resource using map ctrl... but is dere a way 2 move da map ctrl so it follows da player and not stay static ? (right now da player can walk outside of maps area....)

LCD OUT

[edit] problem solved

i just used a looping cutrsc command (and set da fadein time in da decription.exst to 0)]
Title: Re: Stick map cutrsc 2 unit solved
Post by: Spooner on 03 Oct 2007, 23:18:05
You don't need to repeatedly re-show the resource:

- Set the lifetime of the resource to 9999999.
- Add an event handler to the display definition:
Code: [Select]
onLoad =  "nil = _this spawn myMapResourceShown;";

- In the function, myMapResourceShown, the first parameter (_this select 0) is the display (type display, not just the ID) so you can manipulate the map as much as you like with that. Within the function, animate the map within a waitUntil loop.
Title: Re: Stick map cutrsc 2 unit solved
Post by: LCD on 03 Oct 2007, 23:22:58
thing is... iom not sure it works 4 cutrsc (as it is difrent from dialogs...) im usin it all 2 have da player bein able 2 move while da GPS is workin...

u sure it shud work ?

LCD OUT
Title: Re: Stick map cutrsc 2 unit solved
Post by: Spooner on 03 Oct 2007, 23:24:37
Yep! I've done it (SPON Rangefinder (http://www.ofpec.com/forum/index.php?topic=30371.0) keeps the range value updated as you look around) and so have plenty of other people.
Title: Re: Stick map cutrsc 2 unit solved
Post by: LCD on 03 Oct 2007, 23:35:00
cool :D thx  :cool2:

LCD OUT