Home   Help Search Login Register  

Author Topic: Stick map cutrsc 2 unit solved  (Read 1219 times)

0 Members and 1 Guest are viewing this topic.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Stick map cutrsc 2 unit solved
« 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)]
« Last Edit: 03 Oct 2007, 22:23:43 by LCD »
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Stick map cutrsc 2 unit solved
« Reply #1 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.
« Last Edit: 04 Oct 2007, 00:20:13 by Spooner »
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: Stick map cutrsc 2 unit solved
« Reply #2 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
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Stick map cutrsc 2 unit solved
« Reply #3 on: 03 Oct 2007, 23:24:37 »
Yep! I've done it (SPON Rangefinder keeps the range value updated as you look around) and so have plenty of other people.
« Last Edit: 04 Oct 2007, 00:18:47 by Spooner »
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: Stick map cutrsc 2 unit solved
« Reply #4 on: 03 Oct 2007, 23:35:00 »
cool :D thx  :cool2:

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta