;D ;D ;D
dis is script i worked on in da last 3 months (actualy its not like dat ;D - im waitin 4 bout a month 4 an answer from snYpir (c my sig line ;D))
dis script is intended 2 make guards c bodies and raise da alarm wen dey do - check da example mision attached (kill da standing guard either by radio call alpha or by shoting and wait til da patrolin soldier c him) - i need som help in completeing it
and dis is were u ppl come ;D
1) i need som1 2 comment my script lines in good english ;D (if u have Qs just ask me ;D)
2) cuz da way da script works i wanna make object referance 2 b realsed wid it - and i want help in dat (as i made da script mebe som1 else should do dat ;D :beat:
)
now bout da script
exec like dat
[GuardName,WouldBeBodyName,Distance2DetectFrom] exec "isbodyhidden.sqs"
cuz of me using lots of functions (2 determinate if da body is hidden behind building mainly
) u wil need da next lines in ur init.sqs
getdang = preprocessFile "getdang.sqf"
hidding = preprocessFile "hidding.sqf"
cornersfind = preprocessfile "corners.sqf"
points2line = preprocessfile "points2line.sqf"
linehide = preprocessfile "linehide.sqf"
cornershide = preprocessfile "cornershide.sqf"
and last thing ;D - cuz dere is no way 2 know size of buildings in OFP (we need command like dat
- and cuz i cant make array dat includes all objects on da map u need array of all da building+places da body can b hiden behind like dat
hidingobjects = [[taga,18,12]] (dats 4 1 building)
hidingobjects = [[taga,18,12],[taga1,10,10],etc]
da
[taga,18,12] is referance 4
[buildingname(u can also use object ID),LengthOfBuildingFromEastToWest,LengthOfBuildingFromSouthToNorth]
remember dat wen u check da building size (lengths) da building should b in azimuth 0 (use setdir 0 ;D) da script wil adjust itself 2 da buildings azimuth later
--------------------------------------------------------------------------------------------------------------
Short TUT on how 2 calculate lengths of buildings (more or less)
make 2 gamelogics and and 2 radio trigers used 2 setpos dis 2 GLs 2 da players position
make radio triger 2 check distance between da 2 GLs
now move and setpos da GLs on both corners of building (on same side)
and use daoder trig 2 check da length (it wont b exact but itll b fine ;D)
---------------------------------------------------------------------------------------------------------------
:cheers:
hop u like it ;D
LCD OUT