Forum Jump :

Author Message


Posts: 147
Rank:


Level: Member

Country: gr
Location: Athens
Occupation: Musician
Age: 46
In-game name:

 
#1 Posted at 2010-11-16 14:53        
     
Ok guyz.I GIVE UP!!
I m currently "trying" to learn about basic scripting-and i have a serious problem while trying-hard-to create a mission.

IN EDITOR
---------------
My concept (and problem also..)is to create various markers (for "marking" various XTRA ACCURATE positions) via trigger/(RadioAlpha i.e).
I put into OnActivation window:
MarCre=createMarker["MARKERNAME1", getPos player];MarCre setMarkerSize[1,1];MarCre setMarkerDir getDir Player;MarCre SetMarkerType"DOT";MarCre setMarkerShape"ICON";
..but NO marker ever created :(

*I tried to add in "line" also the..
;MarCre setMarkerColor"GREEN";    //or any color but..
..i get an error about missing config.bin Color GREEN -or something similar..-

Please guyz can you provide me a "proper"and simple maybe syntax..or help me solve this out???!!

This post was edited by Arm@gedon (2010-11-16 22:04, ago)


Author Message

Dead3yez  

I am evil


Posts: 3113
Rank:


Level: Member

Country: en
Location: North Yorkshire
Occupation: dead3yez
Age: 30
In-game name: dead3yez

 
#2 Posted at 2010-11-16 15:42        
     
Try setting the shape, before setting the type.

Also, I don't think setting the size is really necessary for icons.


http://community.bistudio.com/wiki/setMarkerColor


Advertisement


Author Message


Posts: 147
Rank:


Level: Member

Country: gr
Location: Athens
Occupation: Musician
Age: 46
In-game name:

 
#3 Posted at 2010-11-16 21:43        
     
Sorry D3
I did the "changes" as you suggested but still no "new" marker visible or created in 'mission.sqm'.
(Although thanks for the 'color' proper 'suggestion..)

So guyz..
If someone have any idea..please help.I m stuck here *WALL*

EDITED LATER...
______________

Ok..after hours and hours..i managed to "modify" a SQF script and "execute" it via a "addAction"
Now i can create "a" marker-visible on map (during preview)

My "lesser" problem is..
Although the script seems to executed ok every time i choose the "action"..(i have a"hint" in the bottom page of SQF..)
..i only can create one-the first one only- marker.
That maybe happens because (for now) the new marker CAN'T get a new "name"

My "MAJOR" problem is..everytime i go in "suspend" in editor to edit things..the marker is not in the
map anymore..like never existed!!!

Ideas?....

Added 8 hours 50 minutes later:

*I m asking from moderators to forgive me but i must "bump" it (for last time)
..due to changes on thread after editing the post yesterday.
So..with your permission..

*BUMP*

This post was edited by Arm@gedon (2010-11-17 15:22, ago)