OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ThEoNeAnDoNlY on 20 Feb 2005, 23:58:45
-
ok these to my memory are quite simple, but i cannot remember how to do either.
ok first off, i want an intro. but it is ingame, so when the script is triggerd, i want the 2 talking units player and officer to stand facing each other. now i could use the.
officer setpos [0278450287026724,145028766542,1435] (i made up the numbers but you know what i mean)
but obviously that would be a bitch to do, so is there a way i can make him stand infront of the player and to the left abit, something like;
officer setpos getpos player ... and then i cant remember the rest.
and secondly how do i make a radio command come from PAPABEAR of ZULU 1 etc. that is a biggie as i really want some decent radio messages.
guy
-
for the setpos thing,
Player_G setpos [(getpos Officer_G select 0)+4,(getpos Officer_G select 0)+4,0]
Officer_G dowatch Player_G
That will put your player next to the officer and then the officer will automaticly turn to face your player.
for the PAPA_BEAR thing, use:
[west, "hq"] sidechat "HOWDY, I'M PAPA_BEAR! HA HA HA!"
for Zulu:
Zulu setgroupID ["Zulu","GroupColor0"];Zulu sidechat "HOWDY, I'M ZULU! HA HA HA!"
That should work.
-
ok what about alpha ad Bravo?
Guy
-
well you can do this by in leaders init field who you whant to be named put
this setgroupid ["Alpha,Bravo(what ever you like)", "groupcolor1,2,3,4,5or0"]
for example Bravo 1 would be
this setgroupid ["Bravo", "groupcolor0"]
that will call him bravo 1 the same with the whole team apart from there number like bravo8 and so on.
-
ok thank you very much, but what numbers are what colours? is there anywhere i can use for reference?
Guy
-
well i know 0 is none i think 1 is black and thats all i remeber seeing them somewhere on these forums about 2 - 3 months ago but you might just have to try them and copy them out unless anyone know them all
-
Check the online comref. ;)